From 606b486cbb5ef1336b62eac092aa5c5b0929f6a8 Mon Sep 17 00:00:00 2001 From: OriolFilter <55088942+OriolFilter@users.noreply.github.com> Date: Sun, 13 Oct 2024 01:22:53 +0200 Subject: [PATCH] Create ghub-pages.yml --- .github/workflows/ghub-pages.yml | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ghub-pages.yml diff --git a/.github/workflows/ghub-pages.yml b/.github/workflows/ghub-pages.yml new file mode 100644 index 0000000..ff3b9e8 --- /dev/null +++ b/.github/workflows/ghub-pages.yml @@ -0,0 +1,38 @@ +name: ghub-pages +on: + push: + branches: + - main + pull_request: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: './site' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4