Skip to content

Commit 3e95593

Browse files
committed
feat: deploy on publish
1 parent 2eb6520 commit 3e95593

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/deploy.yml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
tags:
66
- "*"
7+
release:
78
workflow_dispatch:
89

910
permissions:
@@ -20,6 +21,7 @@ jobs:
2021
- uses: dprint/[email protected]
2122
build:
2223
runs-on: ubuntu-latest
24+
if: github.event_name == 'release' && github.event.action == 'published'
2325
needs: style
2426
steps:
2527
- uses: actions/checkout@v4
@@ -32,6 +34,7 @@ jobs:
3234
deploy:
3335
runs-on: ubuntu-latest
3436
needs: build
37+
if: github.event_name == 'release' && github.event.action == 'published'
3538
environment:
3639
name: github-pages
3740
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)