Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/branch-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 🤖 Branch Preview

concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches: [main]

jobs:
deploy:
name: 🚀 Deploy Branch Preview
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: forge-42/fly-deploy@v1.0.0-rc.2
id: deploy
env:
FLY_ORG: ${{ vars.FLY_ORG }}
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
FLY_REGION: ${{ vars.FLY_REGION }}
with:
app_name: ${{github.event.repository.name}}-${{ github.ref_name }}
env_vars: |
APP_ENV=staging
GITHUB_OWNER=${{github.repository_owner}}
GITHUB_REPO=${{github.event.repository.name}}
GITHUB_REPO_URL=https://github.com/${{ github.repository }}
2 changes: 1 addition & 1 deletion .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
FLY_ORG: ${{ vars.FLY_ORG }}
with:
app_name: ${{ env.FLY_ORG }}-${{ github.event.number }}
app_name: ${{github.event.repository.name}}-${{ github.event.number }}
2 changes: 1 addition & 1 deletion fly.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# fly.toml app configuration file generated for docs-template-test on 2025-09-12T12:27:12+02:00
# fly.toml app configuration file generated for docs-template-test on 2025-09-19T15:08:49+02:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
Expand Down
Loading