From c3662ce179269331436666accd37712100f7ac3e Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:13:09 +0100 Subject: [PATCH] chore: publish command to publish 0.9.0 --- .github/workflows/publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dc5355e..38cd376 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: @@ -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." @@ -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..."