Skip to content

Commit

Permalink
feat(ci): publish to github
Browse files Browse the repository at this point in the history
  • Loading branch information
JamzumSum committed Oct 3, 2022
1 parent dc18cbf commit 149d563
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test-pub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,16 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install Poetry and Publish to PyPI
id: publish
run: |
pipx install poetry
echo "::set-output name=version::$(poetry version -s)"
export POETRY_PYPI_TOKEN_PYPI=${{ secrets.PYPI_TOKEN }}
poetry publish --build
poetry publish -n --build
- uses: softprops/action-gh-release@v1
with:
files: dist/*
prerelease: ${{ startsWith(github.head_ref, 'dev') }}
tag_name: ${{ steps.publish.outputs.version }}
name: ${{ steps.publish.outputs.version }}
generate_release_notes: true

0 comments on commit 149d563

Please sign in to comment.