Skip to content

Commit

Permalink
parse tag
Browse files Browse the repository at this point in the history
  • Loading branch information
lmtani committed Feb 10, 2020
1 parent 8f14b6c commit cfce751
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
sed -i "s/$VERSION$/${{ github.ref }}/g" setup.py
sed -i "s/$VERSION$/${{ steps.get_version.outputs.VERSION }}/g" setup.py
python setup.py sdist bdist_wheel
twine upload dist/*

0 comments on commit cfce751

Please sign in to comment.