Skip to content

Fly Deploy

Fly Deploy #213

Workflow file for this run

name: Fly Deploy
# Only trigger, when the CI workflow succeeded
on:
workflow_run:
workflows: ["CI"]
types: [completed]
branches: [main]
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
environment: main
steps:
- uses: actions/checkout@v3
- name: Create credentials file and remove it from .gitignore
env:
CREDENTIALS_BASE64: ${{ secrets.CREDENTIALS_BASE64 }}
run: |
echo $CREDENTIALS_BASE64 | base64 -d > config/credentials.yml.enc
sed -i '/config\/credentials.yml.enc/d' .gitignore
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
# ignore_empty is needed for the first release
ignore_empty: true
environment: production