Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Commit

Permalink
Correct error in python-publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestoLoma committed Mar 27, 2023
1 parent fef414e commit 47c49e7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ permissions:

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

steps:
Expand All @@ -31,13 +30,14 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: check tag
id: check-tag
run: python check_tag.py
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository-url: https://test.pypi.org/legacy/
2 changes: 1 addition & 1 deletion check_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def read(file_name):
def main(env_var="GITHUB_REF") -> int:
git_ref = os.getenv(env_var, "none")
tag = re.sub("^refs/tags/v*", "", git_ref.lower())
version = read("version.txt").strip()
version = read("pyatlan/version.txt").strip()
if tag == version:
return 0
else:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def read(file_name):

setup(
name="pyatlan",
version=read("version.txt"),
version=read("pyatlan/version.txt"),
author="Atlan Technologies Pvt Ltd",
author_email="[email protected]",
description="Atlan Python Client",
Expand Down

0 comments on commit 47c49e7

Please sign in to comment.