mirror of
https://github.com/a-sync/game-server-watcher.git
synced 2026-07-23 06:03:34 -04:00
25 lines
572 B
YAML
25 lines
572 B
YAML
name: ☁️ Deploy to the cloud
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
deploy:
|
|
name: 🚀 Deploy app
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
name: 🚚 Get latest code
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: superfly/flyctl-actions/setup-flyctl@master
|
|
- name: 🛩 Deploy to fly.io
|
|
run: flyctl deploy --remote-only --auto-confirm --region ${{ secrets.FLY_REGION }} --app ${{ github.repository_owner }}-gsw
|