File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11name : Fly Deploy
22on :
3- workflow_dispatch :
4- push :
5- paths :
6- - ' **.ex'
7- - ' **.exs'
8- - ' !**.md'
9- branches :
10- - main
3+ release :
4+ types : [published]
115jobs :
126 deploy :
137 name : Deploy app
148 runs-on : ubuntu-latest
159 environment : production
1610 steps :
1711 - uses : actions/checkout@v3
12+ - name : update APP_VERSION
13+ run : |
14+ sed -i "s#<APP_VERSION>#${{ github.ref_name }}#g" ./fly.toml
1815 - uses : superfly/flyctl-actions/setup-flyctl@master
1916 - run : flyctl deploy --remote-only
17+ name : Publishing v${{ github.ref_name }}
2018 env :
2119 FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
20+ APP_VERSION : ${{ github.ref_name }}
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ primary_region = "syd"
77[env ]
88 PHX_HOST = " aba-viewer.fly.dev"
99 PORT = " 8080"
10+ APP_VERSION = " <APP_VERSION>"
1011
1112[http_service ]
1213 internal_port = 8080
You can’t perform that action at this time.
0 commit comments