Skip to content

Commit e1e0f14

Browse files
committed
ci: trigger deploy on release publish
- Changed trigger event - Trigger on release publish
1 parent e3ce7eb commit e1e0f14

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: deploy
22

3-
# Run this workflow when a push is made to the main branch
3+
# Run this workflow when a new release is published
44
on:
5-
push:
6-
branches: [ main ]
5+
release:
6+
types: [published]
77
jobs:
88
build_and_deploy:
99
runs-on: ubuntu-latest # Use the latest version of Ubuntu
@@ -32,4 +32,4 @@ jobs:
3232
uses: peaceiris/actions-gh-pages@v3
3333
with:
3434
github_token: ${{ secrets.GITHUB_TOKEN }}
35-
publish_dir: ./build/web
35+
publish_dir: ./build/web

0 commit comments

Comments
 (0)