Skip to content

Commit e815fd5

Browse files
committed
fix action conditions
1 parent 9737d91 commit e815fd5

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/publish_github_pages.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@ name: build and test and deploy
33
on:
44
push:
55
branches:
6-
- main
7-
pull_request:
8-
types: [closed]
9-
branches:
10-
- main
6+
- main
117
permissions:
128
contents: write
139

1410
jobs:
1511
deploy-to-github-pages:
16-
if: github.event.pull_request.merged == true
12+
if: github.ref == 'refs/heads/main'
1713
runs-on: ubuntu-latest
1814
steps:
1915
# Checkout the code

0 commit comments

Comments
 (0)