mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-18 03:54:01 +02:00
39 lines
722 B
YAML
39 lines
722 B
YAML
name: Upload Python Package
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
tags:
|
|
- 'v[0-9]\.[0-9]+\.[0-9]+'
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: './.github/actions/setup-project'
|
|
with:
|
|
dependency-groups: 'dev'
|
|
|
|
- name: Prepare README
|
|
run: ./scripts/refactor_readme.py README.md
|
|
|
|
- name: Build package
|
|
run: poetry build
|
|
|
|
- name: Publish package
|
|
run: |
|
|
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
|
|
poetry publish
|
|
|
|
- name: Create release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
draft: true
|
|
files: dist/*
|