mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 20:35:24 +00:00
31 lines
795 B
YAML
31 lines
795 B
YAML
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
|
|
|
|
name: Fly Deploy
|
|
on:
|
|
# Since the `fly.toml` specifies the `latest` tag, we trigger this
|
|
# deployment whenever a new version is published to the container registry.
|
|
# @see: ghcr-publish.yml
|
|
workflow_run:
|
|
workflows: ["Publish to ghcr"]
|
|
types:
|
|
- completed
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Deploy app
|
|
runs-on: ubuntu-latest
|
|
environment: production
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: 'true'
|
|
|
|
- name: Use flyctl
|
|
uses: superfly/flyctl-actions/setup-flyctl@master
|
|
|
|
- name: Deploy to fly.io
|
|
run: flyctl deploy --local-only
|
|
env:
|
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|