Remove all caching #41
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: Deploy and Notify | |
on: | |
push: | |
branches: | |
- 'release/**' | |
- 'main' | |
jobs: | |
announce-on-release: | |
name: Announce Deploy to Slack for Release Branch | |
environment: Staging | |
if: ${{ github.ref != 'refs/heads/main' && contains(github.ref, 'release/') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Announce to Slack | |
uses: 8398a7/action-slack@v3 | |
with: | |
status: ${{ job.status }} | |
author_name: ${{ github.actor }} | |
text: "There is a deployment to *${{ github.ref }}* underway :oooo:" | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
announce-on-main-merge: | |
name: Announce Merge to Main on Slack channel | |
environment: Production | |
if: ${{ github.ref == 'refs/heads/main' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Announce to Slack | |
uses: 8398a7/action-slack@v3 | |
with: | |
status: ${{ job.status }} | |
author_name: ${{ github.actor }} | |
text: "A release branch has just been merged to *main* :tada:" | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |