diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3775e89..c2f5329 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,6 +21,7 @@ jobs: run: hugo --minify -DEFb=https://staging.msfjarvis.dev/ - name: Deploy to staging + if: "!contains(github.event.head_commit.message, '[skip staging]') && !contains(github.event.head_commit.message, '[skip deploy]')" run: source $GITHUB_WORKSPACE/ci/deploy.sh env: ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} @@ -33,6 +34,7 @@ jobs: run: hugo --minify - name: Deploy to prod + if: "!contains(github.event.head_commit.message, '[skip prod]') && !contains(github.event.head_commit.message, '[skip deploy]')" run: source $GITHUB_WORKSPACE/ci/deploy.sh env: ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}