Skip to content

Commit 47c49e7

Browse files
committed
Correct error in python-publish.yaml
1 parent fef414e commit 47c49e7

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

β€Ž.github/workflows/python-publish.yamlβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ permissions:
1818

1919
jobs:
2020
deploy:
21-
if: "success() && startsWith(github.ref, 'refs/tags/')"
2221
runs-on: ubuntu-latest
2322

2423
steps:
@@ -31,13 +30,14 @@ jobs:
3130
run: |
3231
python -m pip install --upgrade pip
3332
pip install build
33+
- name: Build package
34+
run: python -m build
3435
- name: check tag
3536
id: check-tag
3637
run: python check_tag.py
37-
- name: Build package
38-
run: python -m build
3938
- name: Publish package
4039
uses: pypa/gh-action-pypi-publish@v1.8.3
4140
with:
4241
user: __token__
43-
password: ${{ secrets.PYPI_API_TOKEN }}
42+
password: ${{ secrets.TEST_PYPI_TOKEN }}
43+
repository-url: https://test.pypi.org/legacy/

β€Žcheck_tag.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def read(file_name):
3434
def main(env_var="GITHUB_REF") -> int:
3535
git_ref = os.getenv(env_var, "none")
3636
tag = re.sub("^refs/tags/v*", "", git_ref.lower())
37-
version = read("version.txt").strip()
37+
version = read("pyatlan/version.txt").strip()
3838
if tag == version:
3939
return 0
4040
else:
File renamed without changes.

β€Žsetup.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def read(file_name):
4141

4242
setup(
4343
name="pyatlan",
44-
version=read("version.txt"),
44+
version=read("pyatlan/version.txt"),
4545
author="Atlan Technologies Pvt Ltd",
4646
author_email="engineering@atlan.com",
4747
description="Atlan Python Client",

0 commit comments

Comments
Β (0)