File tree Expand file tree Collapse file tree 4 files changed +32
-47
lines changed
Expand file tree Collapse file tree 4 files changed +32
-47
lines changed Original file line number Diff line number Diff line change 11name : Publish to PyPI via Trusted Publisher
22
33on :
4- workflow_run :
5- workflows : ["Update Version"]
6- types :
7- - completed
4+ push :
5+ tags :
6+ - " *"
87
98jobs :
109
2120 with :
2221 fetch-depth : 0
2322
23+ - name : Check version
24+ run : |
25+ TAG_NAME=$(echo ${{ github.ref_name }})
26+ PYVERSION_FILE="pyfmm_gui/_version.py"
27+ PYTHON_VERSION=$(grep -oP '__version__ = "\K[0-9]+\.[0-9]+\.[0-9]+' ${PYVERSION_FILE})
28+
29+ if [ "$PYTHON_VERSION" != "${TAG_NAME:1}" ]; then
30+ echo "Version mismatch between tag and ${PYVERSION_FILE}"
31+ exit 1
32+ fi
33+
34+
2435 - name : Set up Python
2536 uses : actions/setup-python@v4
2637 with :
Original file line number Diff line number Diff line change 11name : Publish to TestPyPI
22
33on :
4- workflow_run :
5- workflows : ["Update Version"]
6- types :
7- - completed
4+ push :
5+ tags :
6+ - " *"
87
98jobs :
109 publish :
1918 with :
2019 fetch-depth : 0
2120
21+ - name : Check version
22+ run : |
23+ TAG_NAME=$(echo ${{ github.ref_name }})
24+ PYVERSION_FILE="pyfmm_gui/_version.py"
25+ PYTHON_VERSION=$(grep -oP '__version__ = "\K[0-9]+\.[0-9]+\.[0-9]+' ${PYVERSION_FILE})
26+
27+ if [ "$PYTHON_VERSION" != "${TAG_NAME:1}" ]; then
28+ echo "Version mismatch between tag and ${PYVERSION_FILE}"
29+ exit 1
30+ fi
31+
32+
2233 - name : Set up Python
2334 uses : actions/setup-python@v4
2435 with :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22/build
33/dist
44/* .egg-info
5- /pyfmm_gui /__pycache__
5+ /pyfmm_gui /__pycache__
6+ /.vscode
You can’t perform that action at this time.
0 commit comments