diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..38d4f0c --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Check and Deploy +on: + push: + branches: ["main"] +jobs: + deploy: + name: Check and Deploy + runs-on: ubuntu-latest + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + steps: + - uses: actions/checkout@v2 + - uses: ./.github/actions/check + - uses: superfly/flyctl-actions@1.1 + with: + args: "deploy" + - if: success() + uses: slackapi/slack-github-action@v1.18.0 + with: + payload: | + { + "text": "deployed " + } + - if: failure() + uses: slackapi/slack-github-action@v1.18.0 + with: + payload: | + { + "text": "deploy failed! " + }