diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d78b1f1..82fbd49 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,6 +19,7 @@ jobs: extended: true - name: Build staging + if: "!contains(github.event.head_commit.message, '[skip staging]')" run: hugo --minify -DEFb=https://staging.msfjarvis.dev/ - name: Deploy to staging @@ -32,6 +33,7 @@ jobs: SSH_PORT: ${{ secrets.SSH_PORT }} - name: Build prod + if: "!contains(github.event.head_commit.message, '[skip prod]')" run: hugo --minify - name: Deploy to prod