Skip to content

Commit

Permalink
ci: Updated release job (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
frgfm authored Aug 1, 2022
1 parent fe81f34 commit edda2b0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit edda2b0

Please sign in to comment.