Skip to content

CI: update workflow action versions (#41) #24

CI: update workflow action versions (#41)

CI: update workflow action versions (#41) #24

Workflow file for this run

name: πŸš€ Deploy to Fly
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
concurrency: deploy-group
permissions:
deployments: write
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v4
- name: Setup Fly 🧰
uses: superfly/flyctl-actions/setup-flyctl@master
- name: Create GitHub deployment πŸ™
uses: chrnorm/deployment-action@v2
id: deployment
with:
token: ${{ secrets.BOT_TOKEN || secrets.GITHUB_TOKEN }}
environment-url: http://api.web-check.xyz
environment: production
- name: Deploy to Fly.io πŸ›©οΈ
run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_TOKEN }}
- name: Update deployment status (success) βœ…
if: success()
uses: chrnorm/deployment-status@v2
with:
token: ${{ secrets.BOT_TOKEN || secrets.GITHUB_TOKEN }}
environment-url: ${{ steps.deployment.outputs.environment_url }}
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
state: 'success'
- name: Update deployment status (failure) ❌
if: failure()
uses: chrnorm/deployment-status@v2
with:
token: ${{ secrets.BOT_TOKEN || secrets.GITHUB_TOKEN }}
environment-url: ${{ steps.deployment.outputs.environment_url }}
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
state: 'failure'