From a4327a0fb6bd02a3d8fb7677ba118b3b5dd1b3e8 Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Fri, 20 Sep 2024 10:13:34 +0200 Subject: Add Github Pages website deployment workflow (#207) --- .github/workflows/deploy.yml | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..809e9af --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,45 @@ +name: Deploy + +on: + push: + branches: + - main + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "deploy" + cancel-in-progress: false + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + + environment: + name: pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Pages + uses: actions/configure-pages@v5 + + - name: Build + run: "mkdir public && echo gomponents >public/index.html" + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: 'public' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 -- cgit 1.4.1