Also skip building when skip directives are used

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2020-02-10 11:04:49 +05:30
parent 5d16814ae6
commit 4b39e41c5d
1 changed files with 2 additions and 0 deletions

View File

@ -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