Skip to content

radme

radme #16

name: Deploy (landing)
on:
push:
branches:
- main
jobs:
deploy:
name: 🚀 Deploy
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
with:
persist-credentials: false
- name: 👀 Read app name
uses: SebRollen/toml-action@v1.0.2
id: app_name
with:
file: './docs/landing/fly.toml'
field: 'app'
- name: 🚀 Deploy Production
if: ${{ github.ref == 'refs/heads/main' }}
uses: superfly/flyctl-actions@1.3
with:
args: 'deploy --remote-only --config ./docs/landing/fly.toml --dockerfile ./docs/landing/Dockerfile --build-arg COMMIT_SHA=${{ github.sha }}'
env:
FLY_API_TOKEN: ${{ secrets.FLY_LANDING_API_TOKEN }}