File tree Expand file tree Collapse file tree 1 file changed +22
-8
lines changed
Expand file tree Collapse file tree 1 file changed +22
-8
lines changed Original file line number Diff line number Diff line change 66 - main
77 paths :
88 - ' static/**'
9+ - ' .github/workflows/publish-pages.yml'
910 workflow_run :
1011 workflows :
1112 - Publish Firmware
1213 types :
1314 - completed
15+ pull_request :
16+ paths :
17+ - ' static/**'
18+ - ' .github/workflows/publish-pages.yml'
1419
1520
1621concurrency :
1722 group : ${{ github.workflow }}-${{ github.ref }}
1823 cancel-in-progress : true
1924
2025jobs :
21- build-and-publish :
22- name : Build and publish site
26+ build :
27+ name : Build
2328 runs-on : ubuntu-latest
24- permissions :
25- pages : write
26- id-token : write
27- environment :
28- name : github-pages
29- url : ${{ steps.deployment.outputs.page_url }}
3029 steps :
3130 - name : Checkout source code
32313332
33+ - run : mkdir -p output/firmware
34+
3435 - name : Build
35363637 with :
5051 path : output
5152 retention-days : 1
5253
54+ publish :
55+ if : github.event_name != 'pull_request'
56+ name : Publish
57+ runs-on : ubuntu-latest
58+ needs :
59+ - build
60+ permissions :
61+ pages : write
62+ id-token : write
63+ environment :
64+ name : github-pages
65+ url : ${{ steps.deployment.outputs.page_url }}
66+ steps :
5367 - name : Setup Pages
54685569
You can’t perform that action at this time.
0 commit comments