File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -129,3 +129,36 @@ jobs:
129129 env :
130130 GITHUB_TOKEN : ${{ secrets.GHTOKEN }}
131131
132+ # Create directory structure pages sites for privileged and unprivileged specs.
133+ - name : Make GitHub pages directory
134+ run : |
135+ mkdir -p dist/snapshot/unprivileged dist/snapshot/privileged
136+ cp build/riscv-unprivileged.html dist/snapshot/unprivileged/index.html
137+ cp build/riscv-privileged.html dist/snapshot/privileged/index.html
138+ if : github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
139+
140+ - name : Upload pages artifact
141+ uses : actions/upload-pages-artifact@v3
142+ with :
143+ path : dist
144+ if : github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
145+
146+ # Deploy HTML to Github pages.
147+ deploy :
148+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
149+
150+ needs : build
151+
152+ permissions :
153+ pages : write
154+ id-token : write
155+
156+ environment :
157+ name : github-pages
158+ url : ${{ steps.deployment.outputs.page_url }}
159+
160+ runs-on : ubuntu-latest
161+ steps :
162+ - name : Deploy to GitHub Pages
163+ id : deployment
164+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments