Skip to content

Re-enable dynamic-versioning; use Poetry to publish #4

Re-enable dynamic-versioning; use Poetry to publish

Re-enable dynamic-versioning; use Poetry to publish #4

Workflow file for this run

name: "tagged-release"
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.6.1'
- name: Install dependencies
run: |
poetry self add "poetry-dynamic-versioning[plugin]"
poetry install --all-extras
- name: Run tests
run: poetry run pytest
# - name: Create Github release
# uses: "marvinpinto/action-automatic-releases@latest"
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# prerelease: false
# files: |
# dist/*.whl
# dist/*.tar.gz
- name: Build and publish package
run: poetry publish --build --user __token__ --password ${{ secrets.PYPI_API_TOKEN }}