File tree 2 files changed +33
-0
lines changed 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : build and publish
2
+
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ branch :
7
+ type : string
8
+ required : false
9
+ jobs :
10
+ release :
11
+ runs-on : ubuntu-22.04
12
+ continue-on-error : false
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ with :
16
+ ref : ${{ inputs.branch }}
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v4
19
+ - name : Install python dependencies
20
+ run : |
21
+ python -m pip install --upgrade pip build
22
+ - name : Build sdist
23
+ run : |
24
+ python -m build -s
25
+ - name : Publish package
26
+ uses : pypa/gh-action-pypi-publish@release/v1
27
+ with :
28
+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 15
15
push-pr-unit-tests-docker :
16
16
name : Docker Unit Tests
17
17
uses : ./.github/workflows/reusable-unit-tests-docker.yml
18
+ build-and-release :
19
+ name : Release to Pypi
20
+ needs : push-pr-unit-tests
21
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
22
+ uses : ./.github/workflows/build-and-release.yml
You can’t perform that action at this time.
0 commit comments