We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 256175b commit 8b7b920Copy full SHA for 8b7b920
1 file changed
.github/workflows/pipeline.yaml
@@ -3,7 +3,7 @@ name: CI/CD Pipeline
3
on: [push, pull_request]
4
5
jobs:
6
- backend-tests:
+ tests:
7
runs-on: ubuntu-latest
8
defaults:
9
run:
@@ -30,3 +30,27 @@ jobs:
30
31
- name: Testes
32
run: poetry run pytest -s -v
33
+
34
+ deploy:
35
+ runs-on: ubuntu-latest
36
+ needs: tests
37
+ if: github.ref == 'refs/heads/main'
38
39
+ steps:
40
+ - name: Checkout
41
+ uses: actions/checkout@v4
42
43
+ - name: Preparar pasta de deploy
44
+ run: |
45
+ mkdir deploy
46
+ cp backend/poetry.lock deploy/
47
+ cp backend/pyproject.toml deploy/
48
+ cp -r backend/src deploy/
49
+ ls -la deploy/
50
51
+ - name: Deploy
52
+ uses: squarecloudofc/github-action@v2.0.1
53
+ with:
54
+ run: commit ${{ secrets.SQUARE_APPLICATION_ID }}
55
+ token: '${{ secrets.SQUARE_TOKEN }}'
56
+ workdir: deploy
0 commit comments