Skip to content

Commit ee6fbb5

Browse files
authored
Merge pull request riscv#1917 from arichardson/github-pages
Deploy a snapshot of the specification to GitHub pages
2 parents 2336fdc + 688dc4c commit ee6fbb5

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/isa-build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff 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

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ The RISC-V Instruction Set Manual is organized into the following volumes:
1515

1616
- **Official versions** of the specifications are available at the [RISC-V International website](https://riscv.org/specifications/).
1717
- **Compiled versions of the most recent drafts** of the specifications can be found on the [GitHub releases page](https://github.com/riscv/riscv-isa-manual/releases/latest).
18+
- **HTML snapshots of the latest commit** can be viewed at the following locations:
19+
- [Unprivileged spec](https://riscv.github.io/riscv-isa-manual/snapshot/unprivileged/)
20+
- [Privileged spec](https://riscv.github.io/riscv-isa-manual/snapshot/privileged/)
1821
- **Older official versions** of the specifications are archived at the [GitHub releases archive](https://github.com/riscv/riscv-isa-manual/releases/tag/archive).
1922

2023
The canonical list of **open-source RISC-V implementations' marchid CSR values** is available in the [marchid.md file](https://github.com/riscv/riscv-isa-manual/blob/main/marchid.md).

0 commit comments

Comments
 (0)