Skip to content

rename

rename #4

Workflow file for this run

name: Release
on:
workflow_dispatch: {}
push:
tags:
- "*"
concurrency:
group: release-${{ github.workflow }}
cancel-in-progress: true
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: "Setup: Python 3.11"
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
- name: Build
run: |
poetry install
poetry build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist
password: "${{ secrets.PYPI_API_TOKEN }}"
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*.whl"
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
prerelease: false