Skip to content

Publish Release

Publish Release #57

Workflow file for this run

name: Publish Release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: '1.5.1'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel twine
- name: Install
run: make install
- name: Set release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Create release
uses: ncipollo/release-action@v1
with:
tag: ${{ env.RELEASE_VERSION }}
generateReleaseNotes: true
prerelease: true
- name: Build and publish package
run: |
poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}"
poetry publish --build