Created
December 15, 2022 02:57
-
-
Save woozyking/9d36300a708fad14ecb92f451780014a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Serverless Deploy - prod stage | |
on: | |
push: | |
tags: | |
- 'prod-*' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
# ... | |
- run: npx serverless deploy --stage=prod | |
env: | |
# ... | |
- name: Notify on deployment status | |
if: ${{ always() }} | |
run: npx @eqworks/notify deployment $GITHUB_REPOSITORY --commit=$GITHUB_SHA --stage=prod --status=$JOB_STATUS | |
env: | |
SLACK_HOOK: ${{ secrets.SLACK_HOOK }} | |
JOB_STATUS: ${{ job.status }} | |
- name: Generate tag associated release changelog | |
run: npx @eqworks/release changelog -v --pattern="prod-*" --head=${GITHUB_REF##*/} --github | |
env: | |
GITHUB_OWNER: ... | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Notify on release changelog update | |
if: ${{ success() }} | |
run: npx @eqworks/notify send "Release changelog updated for ${GITHUB_REPOSITORY} ${GITHUB_REF##*/}" --link="https://github.com/${GITHUB_REPOSITORY}/releases/tag/${GITHUB_REF##*/}" --status=$JOB_STATUS | |
env: | |
SLACK_HOOK: ${{ secrets.SLACK_HOOK }} | |
JOB_STATUS: ${{ job.status }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment