cluster-docs

git clone git://archive.git.mtrnord.blog/MTRNord/cluster-docs.git
Log | Files | Refs

commit f7cdd46bc3f877a0f4887afe72fd068f77931c93
parent 9cb5ea3db925fbb6ee662c6d8cd8874e85aa9b87
Author: MTRNord <mtrnord1@gmail.com>
Date:   Fri, 21 Mar 2025 11:21:29 +0100

Add github workflow

Diffstat:
A.github/workflows/publish.yml | 43+++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml @@ -0,0 +1,43 @@ +name: Publish to GitHub Pages +on: + push: + branches: [main] + 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: "22" + - name: Install Antora + run: npm i antora + - name: Create CNAME file + run: echo docs.midnightthoughts.space > build/site/CNAME + - name: Generate Site + run: npx antora antora-playbook.yml + - name: Create nojekyll file + run: touch build/site/.nojekyll + - 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