Release #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry | |
shell: bash | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.8" | |
architecture: "x64" | |
cache: "poetry" | |
- run: poetry install -E all | |
shell: bash | |
- name: Push Tag | |
run: | | |
git config user.name eya46 | |
git config user.email [email protected] | |
git add . | |
git commit -m ":bookmark: Release $(poetry version -s)" | |
git tag ${{ env.TAG_NAME }} | |
git push && git push --tags | |
- name: Build Package | |
run: | | |
poetry build | |
- name: Publish package to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
- name: Publish package | |
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |