ci: update deploy wf

This commit is contained in:
Nicola Zambello 2022-02-11 13:15:34 +01:00 committed by GitHub
parent 4c737e0244
commit 764f7f61ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,24 @@
name: Fly Deploy
on: [push]
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
name: 🚀 Deploy
on:
push:
branches:
- main
pull_request: {}
jobs:
deploy:
name: Deploy app
name: 🚀 Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: superfly/flyctl-actions@1.1
with:
args: "deploy"
# only build/deploy main branch on pushes
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v2
- name: 🚀 Deploy
uses: superfly/flyctl-actions@1.1
with:
args: "deploy --remote-only"
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}