github: Setup deploy skipping

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-12-31 13:52:07 +05:30
parent 92c06a277f
commit ea82b36c0c
No known key found for this signature in database
GPG Key ID: C2E74282C2133D62
1 changed files with 2 additions and 0 deletions

View File

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