diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml index 84a85fb..e673ab8 100644 --- a/.github/workflows/upload.yml +++ b/.github/workflows/upload.yml @@ -21,7 +21,7 @@ concurrency: jobs: build: - if: "contains(github.event.head_commit.message, '!')" + if: "!(github.event_name == 'push') || contains(github.event.head_commit.message, '!')" runs-on: ubuntu-latest steps: - name: Checkout @@ -42,7 +42,7 @@ jobs: path: "./public" deploy: - if: "contains(github.event.head_commit.message, '!')" + if: "!(github.event_name == 'push') || contains(github.event.head_commit.message, '!')" environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}