Skip to content

Free-main

Free-main #34

Workflow file for this run

name: Merge
on:
merge_group:
# Required to make status check pass.
pull_request:
branches:
- main
env:
environment: staging
jobs:
deploy_staging:
if: ${{ github.event_name == 'merge_group' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: build
uses: ./.github/actions/build
with:
push: true
username: ${{ github.actor}}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to (${{ env.environment }})
uses: ./.github/actions/deploy
with:
app: ${{ env.environment }}
token: ${{ secrets.FLY_TOKEN }}
iamge: ${{ steps.build.outputs.tags }}
- name: Notify (scuccessful deployment)
if: success()
uses: ./.github/actions/slack
with:
message: ":tada: Deployed to ${{ env.environment }} :white_check_mark: successfully!"
webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
- name: Notify (failed deployment)
if: failure()
uses: ./.github/actions/slack
with:
message: ":fail: Failed to deploy to ${{ env.environment }} :red_flag: successfully!"
webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}