File tree Expand file tree Collapse file tree 1 file changed +27
-25
lines changed Expand file tree Collapse file tree 1 file changed +27
-25
lines changed Original file line number Diff line number Diff line change 11name : publish
22
3+ concurrency :
4+ group : " ${{ github.workflow }}-${{ github.ref }}"
5+ cancel-in-progress : " ${{ github.ref != 'refs/heads/main' }}"
6+
37on :
8+ workflow_dispatch :
9+ merge_group :
10+ pull_request :
11+ branches :
12+ - main
13+ types :
14+ - opened
15+ - reopened
16+ - synchronize
17+ - ready_for_review
418 push :
5- branches : [ main ]
19+ branches :
20+ - main
21+
622
723jobs :
824 build-deploy :
925 runs-on : ubuntu-latest
1026
1127 steps :
12- - uses : actions/checkout@v2
13- - uses : actions/setup-node@v2
14- with :
15- node-version : ' 12'
16-
17- # - name: Install parcel
18- # run: |
19- # sudo npm install -g parcel
20-
21- - name : Build site
22- run : |
23- npm install
24- npm --version
25- node --version
26- npx parcel --version
27- npx parcel build index.pug --no-optimize
28- cp wasm_rustfmt_bg.wasm dist
29-
30- - name : Deploy 🚀
31- 32- with :
33- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34- BRANCH : live # The branch the action should deploy to.
35- FOLDER : dist # The folder the action should deploy.
28+ - uses : actions/checkout@v4
29+ - uses : DeterminateSystems/nix-installer-action@main
30+ - run : nix build
31+ - name : Deploy 🚀
32+ if : github.ref == 'refs/heads/main'
33+ 34+ with :
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36+ BRANCH : live # The branch the action should deploy to.
37+ FOLDER : result # The folder the action should deploy.
You can’t perform that action at this time.
0 commit comments