diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b0f753f..07e320f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,8 +5,8 @@ on: branches: - 'main' concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + group: pages + cancel-in-progress: false jobs: build: runs-on: ubuntu-latest @@ -33,11 +33,21 @@ jobs: permissions: pages: write id-token: write + contents: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v7 - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v5 + - name: Tag deploy + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + tag="deploy-$(date +%Y-%m-%d)-${GITHUB_SHA::7}" + git tag "$tag" + git push origin "$tag"