Skip to content

Commit

Permalink
Configura deploy no GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
matheuspdf committed Mar 26, 2024
1 parent 9d89615 commit 1970319
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/django_ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Django CI

on:
pull_request:
push:
branches:
- main
Expand Down Expand Up @@ -32,3 +33,14 @@ jobs:
- name: Run tests
run: |
pipenv run python manage.py test
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only

0 comments on commit 1970319

Please sign in to comment.