included deploy step for release branch
Python application / Test (push) Successful in 38s
Python application / Deploy (push) Successful in 2s

This commit is contained in:
brb
2023-07-11 12:51:35 +02:00
parent 9668646a05
commit a387e5894f
+11
View File
@@ -5,6 +5,7 @@ image: python:3.10
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -24,3 +25,13 @@ jobs:
- name: Type check
run: |
mypy ./code
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: [test]
if: gitea.ref == 'refs/heads/release'
steps:
- name: Build container
run: |
echo "building container"