Skip to content

Commit

Permalink
chore: publish command to publish 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gdulafactset authored Jul 1, 2024
1 parent 9034ac9 commit c3662ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
REPOSITORY_USERNAME: ${{ secrets.PYPI_USERNAME }}
REPOSITORY_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
REPOSITORY_URL: ${{ secrets.PYPI_PUBLISH_URL }}
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
CONDA_ENV_NAME: conda-env

steps:
Expand Down Expand Up @@ -50,7 +51,7 @@ jobs:
count=0
max_retries=5
tag=${{ github.event.release.tag_name }}
version=0.10.0
version=0.9.0
while [ $count -lt $max_retries ]; do
if pip install fds.sdk.utils==${version} --dry-run &>/dev/null; then
echo "Version ${version} of fds.sdk.utils is available on PyPI."
Expand All @@ -74,7 +75,8 @@ jobs:
# Build conda package
conda config --set anaconda_upload no
package_file=$(conda build fds.sdk.utils --output)
echo "${package_file}"
anaconda -t $ANACONDA_TOKEN upload -u factset -l main ${package_file}
break
else
echo "Version ${version} not found, rechecking in $((2 ** count)) seconds..."
Expand Down

0 comments on commit c3662ce

Please sign in to comment.