Skip to content

tagged-release

tagged-release #2

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 install --all-extras
- name: Run tests
run: poetry run pytest
- name: Build
run: poetry build
- 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: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}