github: Setup deploy skipping
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
92c06a277f
commit
ea82b36c0c
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue