From 3926be517ac244547172fb52f8a2199ae4d6bf7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nelson=20Estev=C3=A3o?= Date: Sat, 5 Aug 2023 22:24:58 +0100 Subject: [PATCH] Add GitHub pages action --- .github/workflows/deploy.yml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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 00000000000..1646a3cd893 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,38 @@ +name: Build Jekyll demo site + +on: + push: + branches: ["master"] + +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 + with: + source: ./docs + - 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 }}