Skip to content

Release v0.1.0

Release v0.1.0 #13

Workflow file for this run

name: Upload Python Package
on:
workflow_dispatch:
release:
types: [published]
permissions:
contents: read
jobs:
deploy:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: poetry self add "poetry-dynamic-versioning[plugin]"
shell: bash
run: |
set -eux
poetry self add "poetry-dynamic-versioning[plugin]"
- name: Install
shell: bash
run: |
poetry install
- name: Publish Dry Run
if: ${{github.event_name != 'release'}}
shell: bash
run: |
set -eux
poetry publish --build --dry-run
- name: Publish
if: ${{github.event_name == 'release'}}
shell: bash
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
run: |
set -eux
poetry publish --build