From 5265d18d7adf9ee2c5dcce4bbb4658398e2d5a28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven!=20Ragnar=C3=B6k?= Date: Mon, 19 Aug 2024 20:55:16 -0700 Subject: [PATCH] Add GitHub Actions workflow to deploy documentation to GitHub Pages. --- .github/workflows/doc.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/doc.yaml diff --git a/.github/workflows/doc.yaml b/.github/workflows/doc.yaml new file mode 100644 index 000000000..402831de8 --- /dev/null +++ b/.github/workflows/doc.yaml @@ -0,0 +1,37 @@ +--- +name: Doc build +on: + push: + branches: ['main', 'docdeps'] + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: earthly/actions-setup@v1 + - name: Build documentation + run: | + earthly --ci +doc + upload: + needs: build + runs-on: ubuntu-22.04 + steps: + - name: Upload build for GitHub Pages + uses: actions/upload-pages-artifact@v3 + with: + path: doc/_build/html + deploy: + permissions: + contents: read + id-token: write + pages: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + needs: upload + runs-on: ubuntu-22.04 + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4