Skip to content

Commit 00ddac5

Browse files
authored
Fix: Deploy stuck on manual release
1 parent d5f9fa1 commit 00ddac5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/deploy_website.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
permissions:
2121
contents: write
2222
concurrency:
23-
group: ${{ github.workflow }}-${{ github.ref }}
23+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || 'deploy' }}
2424
defaults:
2525
run:
2626
working-directory: Website
@@ -55,7 +55,7 @@ jobs:
5555

5656
- name: Deploy to GitHub Pages
5757
uses: peaceiris/actions-gh-pages@v4
58-
if: github.ref == 'refs/heads/main'
58+
if: github.event_name == 'release' || (github.event_name != 'pull_request' && github.ref == 'refs/heads/main')
5959
with:
6060
github_token: ${{ secrets.GITHUB_TOKEN }}
6161
publish_dir: ./Website/build

0 commit comments

Comments
 (0)