Skip to content

release-build

release-build #5

name: release-build
on:
push:
tags:
- '*.*.*'
workflow_dispatch:
jobs:
release-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: abatilo/actions-poetry@v2
with:
poetry-version: "latest"
- name: setup-pypi
run: |
poetry self add poetry-pyinstaller-plugin
poetry self add poetry-plugin-taskipy
- name: build
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
dist/**/*.exe
dist/*.tar.gz
dist/*.whl
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}