WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

auto start/stop fly machines #30

auto start/stop fly machines

auto start/stop fly machines #30

Workflow file for this run

name: Deploy
on:
push:
branches: ["main"]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
- uses: actions/checkout@v3
- run: npm install
- run: npm run build
- uses: superfly/[email protected]
with:
args: "deploy"
- if: success()
uses: slackapi/[email protected]
with:
payload: |
{
"text": "deployed <https://github.com/${{ github.repository }}/commit/${{ github.sha}}|${{ github.sha }}>"
}
- if: failure()
uses: slackapi/[email protected]
with:
payload: |
{
"text": "deploy failed! <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|inspect the job>"
}