File tree Expand file tree Collapse file tree 3 files changed +58
-86
lines changed
Expand file tree Collapse file tree 3 files changed +58
-86
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11name : generate
22on :
3- # workflow_dispatch:
3+ workflow_dispatch :
44 workflow_call :
5+ push :
6+ branches :
7+ - main
8+ paths-ignore :
9+ - README.md
10+ - .github/**
11+ - .vscode/**
12+ - " !.github/workflows/**"
13+ pull_request :
14+ branches :
15+ - main
516
617jobs :
718 generate :
2536 with :
2637 name : MKVerilog-lib.zip
2738 path : out
39+
40+ deploy :
41+ needs : [generate]
42+ runs-on : ubuntu-latest
43+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
44+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
45+ concurrency :
46+ group : pages
47+ cancel-in-progress : false
48+ permissions :
49+ contents : read
50+ pages : write
51+ id-token : write
52+ environment :
53+ name : github-pages
54+ url : ${{ steps.deployment.outputs.page_url }}
55+ steps :
56+ - name : Checkout
57+ uses : actions/checkout@v3
58+
59+ - shell : bash
60+ run : mkdir out_deploy
61+
62+ - uses : actions/download-artifact@v3
63+ with :
64+ name : MKVerilog-lib.zip
65+ path : out
66+
67+ - shell : bash
68+ run : |
69+ cd out_deploy
70+ cp -r ../out/assets assets
71+ cp ../out/README.html index.html
72+ ln -s index.html 404.html
73+
74+ - name : Setup Pages
75+ uses : actions/configure-pages@v3
76+
77+ - name : Upload artifact
78+ uses : actions/upload-pages-artifact@v2
79+ with :
80+ path : out_deploy
81+
82+ - name : Deploy to GitHub Pages
83+ id : deployment
84+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments