From d1771d3540a586f45a78192f9a26d6a3da771fd7 Mon Sep 17 00:00:00 2001 From: Silas Schnurr Date: Sat, 11 Jan 2025 15:23:27 +0100 Subject: [PATCH] updated publish action --- .github/workflows/publish-frontend.yml | 37 ++++++++++++++++++-------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish-frontend.yml b/.github/workflows/publish-frontend.yml index d712c44..d68eb32 100644 --- a/.github/workflows/publish-frontend.yml +++ b/.github/workflows/publish-frontend.yml @@ -6,15 +6,28 @@ on: - "main" paths: "Frontend/**" workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + jobs: - publish: - defaults: - run: - working-directory: Frontend + defaults: + run: + working-directory: Frontend + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Node uses: actions/setup-node@v1 with: @@ -23,10 +36,12 @@ jobs: run: | npm ci --force npm run build - - name: Deploy - uses: JamesIves/github-pages-deploy-action@3.7.1 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: gh-pages - FOLDER: Frontend/dist/browser - CLEAN: true + path: "Frontend/dist/browser" + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4