included deploy step for release branch
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user