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