Skip to content

Commit

Permalink
Fix autorelease (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 authored Jun 27, 2022
1 parent 6a7dd89 commit b4bdd33
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,19 @@ jobs:
- name: Prepare release description
run: python3 setupsrc/pl_setup/mk_releasenotes.py

- name: Get latest tag
id: get_tag
run: |
RELEASE_TAG=$(git describe --abbrev=0)
echo "::set-output name=release_tag::$RELEASE_TAG"
- name: Publish to GitHub
uses: ncipollo/release-action@v1
with:
artifacts: 'dist/*'
bodyFile: 'RELEASE.md'
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.get_tag.outputs.release_tag }}

- name: Publish to TestPyPI
run: twine upload -u __token__ -p ${{ secrets.TESTPYPI_TOKEN }} --verbose --repository-url "https://test.pypi.org/legacy/" dist/*
Expand Down

0 comments on commit b4bdd33

Please sign in to comment.