From 3db03002d56c68573d6ba2407c41ec02b77493e9 Mon Sep 17 00:00:00 2001 From: Felix Dittrich Date: Thu, 16 Jan 2025 12:00:23 +0100 Subject: [PATCH] [CI/CD] Replace deprecated parts conda & publish (#1842) --- .github/workflows/builds.yml | 2 +- .github/workflows/publish.yml | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 15b4a5d7f..5797daa12 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -70,4 +70,4 @@ jobs: python setup.py sdist mkdir conda-dist conda build .conda/ --output-folder conda-dist - conda-verify conda-dist/linux-64/*tar.bz2 --ignore=C1115 + conda-verify conda-dist/linux-64/*conda --ignore=C1115 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2494fdaa1..7b3c6ab41 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -31,13 +31,12 @@ jobs: pip install setuptools wheel twine --upgrade - name: Get release tag id: release_tag - run: | - echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - VERSION: ${{ steps.release_tag.outputs.VERSION }} + VERSION: ${{ env.VERSION }} run: | BUILD_VERSION=$VERSION python setup.py sdist bdist_wheel twine check dist/* @@ -81,19 +80,19 @@ jobs: run: conda install -y conda-build conda-verify anaconda-client - name: Get release tag id: release_tag - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV - name: Build and publish shell: bash -el {0} env: ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} - VERSION: ${{ steps.release_tag.outputs.VERSION }} + VERSION: ${{ env.VERSION }} run: | echo "BUILD_VERSION=${VERSION}" >> $GITHUB_ENV python setup.py sdist mkdir conda-dist conda build .conda/ --output-folder conda-dist - conda-verify conda-dist/linux-64/*tar.bz2 --ignore=C1115 - anaconda upload conda-dist/linux-64/*tar.bz2 + conda-verify conda-dist/linux-64/*conda --ignore=C1115 + anaconda upload conda-dist/linux-64/*conda conda-check: if: "!github.event.release.prerelease"