34 lines
588 B
YAML
34 lines
588 B
YAML
name: Upload Python Package
|
|
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
|
|
on:
|
|
release:
|
|
types: [created]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4.1.1
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5.0.0
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install poetry
|
|
poetry install
|
|
|
|
- name: Create Package
|
|
run: poetry build -f wheel
|
|
|
|
- name: Publish
|
|
uses: pypa/gh-action-pypi-publish@v1.8.14
|