File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 12
12
env :
13
13
# The Python version from the matrix used to build and deploy to Pypi
14
14
PYTHON_BUILD_VERSION : 3.8
15
- # Condition for building and deploying
16
- BUILD_AND_DEPLOY : ${{ github.event_name == 'push' && matrix.python-version == $PYTHON_BUILD_VERSION }}
17
15
steps :
18
16
- uses : actions/checkout@v2
19
17
- name : Set up Python ${{ matrix.python-version }}
@@ -36,11 +34,11 @@ jobs:
36
34
run : |
37
35
python -m unittest discover
38
36
- name : Build package with Python ${{ env.PYTHON_BUILD_VERSION }}
39
- if : ${{ env.BUILD_AND_DEPLOY }}
37
+ if : ${{ github.event_name == 'push' && matrix.python-version == env.PYTHON_BUILD_VERSION }}
40
38
run : python -m build
41
39
# - name: Publish package relying on pypa/gh-action-pypi-publish with Python ${{ env.PYTHON_BUILD_VERSION }}
42
40
# uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
43
- # if: ${{ env.BUILD_AND_DEPLOY }}
41
+ # if: ${{ github.event_name == 'push' && matrix.python-version == env.PYTHON_BUILD_VERSION }}
44
42
# with:
45
43
# user: __token__
46
44
# password: ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments