From d1caa4937aee52fe03e9f4ed93c69435a51e579a Mon Sep 17 00:00:00 2001 From: Davide Depau Date: Sun, 24 Dec 2023 23:14:20 +0100 Subject: [PATCH] Add GH Pages workflow --- .github/workflows/github-pages.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/github-pages.yml diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml new file mode 100644 index 0000000..0b64a60 --- /dev/null +++ b/.github/workflows/github-pages.yml @@ -0,0 +1,30 @@ +name: Build Jekyll site +on: + push: + branches: [ "gh-pages" ] +permissions: + contents: read + pages: write + id-token: write +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Build + uses: actions/jekyll-build-pages@v1 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + deploy: + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }}