From 240c2cf8aee459822dbc34872c92dc55cb46171e Mon Sep 17 00:00:00 2001 From: MatiasG19 <73800355+MatiasG19@users.noreply.github.com> Date: Sun, 21 Apr 2024 19:00:07 +0200 Subject: [PATCH] Create githubPages.yml (#7) --- .github/workflows/githubPages.yml | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/githubPages.yml diff --git a/.github/workflows/githubPages.yml b/.github/workflows/githubPages.yml new file mode 100644 index 0000000..457a23f --- /dev/null +++ b/.github/workflows/githubPages.yml @@ -0,0 +1,39 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: ["main"] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + +jobs: + 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: "./web/src" + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4