Skip to content

Commit

Permalink
fix: github action
Browse files Browse the repository at this point in the history
changed github action. Moved the publish action on pull_request closed and merged is true (or, like before, on push to main)
  • Loading branch information
d4rkstar committed Oct 28, 2024
1 parent 59cc724 commit 785d2c1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: test
name: website

on:
pull_request:
types: [closed]

push:
branches:
- main


env:
PUBLISH_DIRECTORY: public

Expand All @@ -12,7 +17,7 @@ permissions:

jobs:
publish:
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
if: github.event_name == 'push' || github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down

0 comments on commit 785d2c1

Please sign in to comment.