File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 19
19
id-token : write
20
20
steps :
21
21
- uses : actions/checkout@v3
22
+ - name : Compare package version with ref/tag
23
+ id : compare
24
+ run : |
25
+ set -e
26
+ VERSION=$(awk -F'"' '/__version__/ {print $2}' sqlite3_to_mysql/__version__.py)
27
+ TAG=${GITHUB_REF_NAME#v}
28
+ if [[ "$VERSION" != "$TAG" ]]; then
29
+ echo "Version in sqlite3_to_mysql/__version__.py ($VERSION) does not match tag ($TAG)"
30
+ exit 1
31
+ fi
22
32
- name : Set up Python
23
33
uses : actions/setup-python@v4
24
34
with :
@@ -30,13 +40,10 @@ jobs:
30
40
- name : Build a binary wheel and a source tarball
31
41
run : |
32
42
python3 setup.py sdist bdist_wheel
33
- - name : Publish distribution 📦 to Test PyPI
43
+ - name : Publish distribution package to Test PyPI
34
44
uses : pypa/gh-action-pypi-publish@release/v1
35
45
with :
36
- verbose : true
37
46
repository-url : https://test.pypi.org/legacy/
38
- - name : Publish distribution 📦 to PyPI
47
+ - name : Publish distribution package to PyPI
39
48
if : startsWith(github.ref, 'refs/tags')
40
49
uses : pypa/gh-action-pypi-publish@release/v1
41
- with :
42
- verbose : true
You can’t perform that action at this time.
0 commit comments