-
-
Notifications
You must be signed in to change notification settings - Fork 4
32 lines (27 loc) · 936 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Publish
on:
workflow_dispatch:
inputs:
version:
description: "Confirm the new version"
required: true
branches: [main]
jobs:
test-and-publish:
runs-on: ubuntu-latest
steps:
- run: git config --global user.name "Andrey Kuzmin"
- run: git config --global user.email "hi@unsoundscapes.com"
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix develop --command elm-format --validate .
- run: nix develop --command elm-review
- run: nix develop --command elm-test
- run: nix develop --command ./scripts/elm-publish.sh ${{ github.event.inputs.version }}
- uses: actions/checkout@v3
with:
path: gh-pages
ref: gh-pages
- run: nix develop --command ./scripts/gh-pages.sh ${{ github.event.inputs.version }}