ci: update deploy wf
This commit is contained in:
parent
4c737e0244
commit
764f7f61ff
32
.github/workflows/main.yml
vendored
32
.github/workflows/main.yml
vendored
|
|
@ -1,14 +1,24 @@
|
||||||
name: Fly Deploy
|
name: 🚀 Deploy
|
||||||
on: [push]
|
on:
|
||||||
env:
|
push:
|
||||||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy app
|
name: 🚀 Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
# only build/deploy main branch on pushes
|
||||||
- uses: actions/checkout@v2
|
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
|
||||||
- uses: superfly/flyctl-actions@1.1
|
|
||||||
with:
|
|
||||||
args: "deploy"
|
|
||||||
|
|
||||||
|
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 }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue