Skip to content

Commit dbfed26

Browse files
committed
chore: deploy prod build to gh-pages after release only
1 parent 59015d1 commit dbfed26

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
fetch-depth: 3
2727

2828
- name: Use latest version of Node.js
29-
uses: actions/setup-node@master
29+
uses: actions/setup-node@v3
3030
with:
3131
node-version: "*"
3232

@@ -60,7 +60,9 @@ jobs:
6060
# path: test/cypress/screenshots
6161

6262
- name: Deploy to gh-pages
63-
if: github.ref == 'refs/heads/main'
63+
if: |
64+
github.ref == 'refs/heads/main' &&
65+
contains(github.event.head_commit.message, 'chore(release)')
6466
uses: peaceiris/actions-gh-pages@v3
6567
with:
6668
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)