From e02f5ed6dca881b64ad65231b50cd6ab19ef0321 Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Tue, 29 Jul 2025 22:50:26 -0500 Subject: [PATCH] setup github action workflow for publishing the docsite with Antora. Signed-off-by: Joey Smith Signed-off-by: Joey Smith --- .github/workflows/publish.yml | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..8a7f04f --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,40 @@ +name: Publish to GitHub Pages +on: + push: + branches: [main] + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: +concurrency: + group: github-pages + cancel-in-progress: false +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write +jobs: + build: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Configure Pages + uses: actions/configure-pages@v5 + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + - name: Install Antora + run: npm i antora + - name: Generate Site + run: npx antora antora-playbook.yml + - name: Upload Artifacts + uses: actions/upload-pages-artifact@v3 + with: + path: build/site + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file