Skip to content

Commit

Permalink
Deploy to fly.io on pushes to trunk (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
tekknolagi authored Jan 5, 2024
1 parent a1d6452 commit c75473b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,15 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
- name: Try a little hello world
run: docker run ${{ steps.meta.outputs.tags }} apply "1 + 2"
deploy:
runs-on: ubuntu-latest
if: |
github.repository == 'tekknolagi/scrapscript' &&
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
needs: [run_lint, run_unit_tests]
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 comments on commit c75473b

Please sign in to comment.