From 1f6bbc99ac8bfbc4573b48ebb0ccf28df4823609 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Mon, 15 Jul 2024 10:18:54 -0400 Subject: [PATCH] Publish built PDF to GitHub Pages --- .github/workflows/compile.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 34d19f9..272f2f8 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -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] @@ -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