Skip to content

Commit

Permalink
Try deploy preview
Browse files Browse the repository at this point in the history
  • Loading branch information
tekknolagi committed Aug 25, 2024
1 parent fa93ae8 commit 73ca361
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy preview on fly.io

on:
pull_request:
branches: [ main ]


jobs:
deploy:
runs-on: ubuntu-latest
if: |
github.repository == 'tekknolagi/tekknolagi.github.com' &&
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 comments on commit 73ca361

Please sign in to comment.