Skip to content

Commit 0764c71

Browse files
authored
Merge pull request #41 from techouse/chore/update-publish
2 parents 35f98a6 + faf84b2 commit 0764c71

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ jobs:
1919
id-token: write
2020
steps:
2121
- 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}' mysql-to-sqlite3/__version__.py)
27+
TAG=${GITHUB_REF_NAME#v}
28+
if [[ "$VERSION" != "$TAG" ]]; then
29+
echo "Version in mysql-to-sqlite3/__version__.py ($VERSION) does not match tag ($TAG)"
30+
exit 1
31+
fi
2232
- name: Set up Python
2333
uses: actions/setup-python@v4
2434
with:

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ exclude = tests
44
max-line-length = 88
55

66
[metadata]
7-
license_file = LICENSE
7+
license_files =
8+
LICENSE
89

910
[bdist_wheel]
1011
universal = true

0 commit comments

Comments
 (0)