included deploy step for release branch
This commit is contained in:
@@ -5,6 +5,7 @@ image: python:3.10
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
name: Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -24,3 +25,13 @@ jobs:
|
|||||||
- name: Type check
|
- name: Type check
|
||||||
run: |
|
run: |
|
||||||
mypy ./code
|
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