From 4be88ee0d9ce1244ae42dbe027c7a80bf1af1c72 Mon Sep 17 00:00:00 2001 From: FrankBevr Date: Tue, 21 Nov 2023 19:00:55 +0100 Subject: [PATCH] :zap: (./.github) update deploy_pages.yaml --- .github/workflows/deploy_pages.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_pages.yaml b/.github/workflows/deploy_pages.yaml index fb66c6b..217ae4a 100644 --- a/.github/workflows/deploy_pages.yaml +++ b/.github/workflows/deploy_pages.yaml @@ -14,9 +14,12 @@ on: workflow_dispatch: jobs: - build: + deploy: runs-on: ubuntu-latest - + permissions: + contents: write + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: - name: Checkout code uses: actions/checkout@v3 @@ -36,6 +39,7 @@ jobs: - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3.9.3 + if: github.ref == 'refs/heads/main' with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: Frontend/dist