Skip to content

Commit

Permalink
Publish built PDF to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
nwf-msr committed Jul 15, 2024
1 parent 09ef3a7 commit 1f6bbc9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ name: CI

on: [push, pull_request]

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: [ubuntu-20.04]
Expand Down Expand Up @@ -29,8 +39,21 @@ jobs:
run: |
eval $(opam env) && make -C archdoc
cp archdoc/cheriot-architecture.pdf install
mkdir -p _site/
cp archdoc/cheriot-architecture.pdf _site/
- name: Upload simulator artifact
uses: actions/upload-artifact@v4
with:
name: cheriot_sim
path: install/

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: [ubuntu-20.04]
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 1f6bbc9

Please sign in to comment.