File tree Expand file tree Collapse file tree 1 file changed +3
-22
lines changed Expand file tree Collapse file tree 1 file changed +3
-22
lines changed Original file line number Diff line number Diff line change 11on :
22 push :
33 pull_request :
4+ workflow_dispatch :
45
56name : CI
67jobs :
2021 name : dist
2122 path : dist/
2223
23- deploy :
24- needs : build
25- if : ${{ github.repository == 'amaranth-lang/playground' && github.event_name == 'push' && github.event.ref == 'refs/heads/live' }}
26- runs-on : ubuntu-latest
27- steps :
28- - name : Check out repository
29- uses : actions/checkout@v4
30- - name : Download artifact
31- uses : actions/download-artifact@v4
32- with :
33- name : dist
34- path : dist/
35- - name : Publish artifact to the main Amaranth website
36- uses : JamesIves/github-pages-deploy-action@releases/v4
37- with :
38- folder : dist/
39- repository-name : amaranth-lang/amaranth-lang.github.io
40- ssh-key : ${{ secrets.PAGES_DEPLOY_KEY }}
41- branch : main
42- target-folder : play/
43-
44- deploy-dev :
24+ publish :
4525 needs : build
4626 if : ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' }}
4727 runs-on : ubuntu-latest
6242 uses : JamesIves/github-pages-deploy-action@releases/v4
6343 with :
6444 folder : dist/
45+ branch : ${{ github.repository == 'amaranth-lang/playground' && 'pages' || 'gh-pages' }}
6546 single-commit : true
You can’t perform that action at this time.
0 commit comments