Also skip building when skip directives are used
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
5d16814ae6
commit
4b39e41c5d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue