diff --git a/.github/workflows/django_ci.yml b/.github/workflows/django_ci.yml index 6bd375d..d099ff8 100644 --- a/.github/workflows/django_ci.yml +++ b/.github/workflows/django_ci.yml @@ -1,6 +1,7 @@ name: Django CI on: + pull_request: push: branches: - main @@ -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 \ No newline at end of file