Rename library as the pypi name is taken #2
Workflow file for this run
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: | |
push: | |
tags: | |
- '*.*.*' | |
jobs: | |
pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get tag | |
id: tag | |
run: | | |
echo ::set-output name=tag::${GITHUB_REF#refs/tags/} | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
pip install poetry | |
poetry install | |
- name: Make build | |
run: | | |
poetry build | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: httpkit-${{ steps.tag.outputs.tag }}.tar.gz | |
path: dist/httpkit-${{ steps.tag.outputs.tag }}.tar.gz | |
- name: Publish release | |
env: | |
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} | |
run: | | |
poetry publish | |