From 48ff9f3cf65aa231777b3ad16150c3a12332fe33 Mon Sep 17 00:00:00 2001 From: redfast00 Date: Fri, 3 May 2024 16:30:35 +0200 Subject: [PATCH] Try to add CI --- .github/workflows/gh-pages.yml | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..bc0a6ba --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,43 @@ +name: Github Pages + +on: [push, pull_request] + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + + - name: Checkout + uses: actions/checkout@v4 + + - name: Build site + run: ./generate.sh + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: output/ + + deploy: + runs-on: ubuntu-latest + needs: build + if: github.ref == 'refs/heads/main' + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file