Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish built PDF to GitHub Pages #59

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
name: CI

on: [push, pull_request]
on:
push:
branches:
- main

pull_request:

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

jobs:
build:
Expand Down Expand Up @@ -29,8 +38,30 @@ 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:
# Run only when landing, not as part of a PR
if: ${{ github.event_name == 'push' }}

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

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