From edda2b0a3cd7879ac4c83771ce36e61e8fc4c45a Mon Sep 17 00:00:00 2001 From: F-G Fernandez <26927750+frgfm@users.noreply.github.com> Date: Mon, 1 Aug 2022 23:16:19 +0200 Subject: [PATCH] ci: Updated release job (#173) --- .github/workflows/release.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 80c8699..61e1b48 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,15 +26,14 @@ jobs: - name: Get release tag id: release_tag run: | - echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//:1} - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - VERSION: ${{ steps.release_tag.outputs.VERSION }} + BUILD_VERSION: ${{ steps.release_tag.outputs.VERSION }} run: | - VERSION="${VERSION:1}" - BUILD_VERSION=$VERSION python setup.py sdist bdist_wheel + python setup.py sdist bdist_wheel twine check dist/* twine upload dist/* @@ -71,13 +70,12 @@ jobs: - name: Get release tag id: release_tag run: | - echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//:1} - name: Build and publish env: ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} - VERSION: ${{ steps.release_tag.outputs.VERSION }} + BUILD_VERSION: ${{ steps.release_tag.outputs.VERSION }} run: | - export BUILD_VERSION="${VERSION:1}" python setup.py sdist mkdir conda-dist conda-build .conda/ -c pytorch --output-folder conda-dist