Skip to content

v0.6.1

v0.6.1 #8

Workflow file for this run

name: release
on:
release:
types: [ published ]
jobs:
build:
name: Build package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build and Check Package
uses: hynek/build-and-inspect-python-package@v2
publish-to-testpypi:
name: Publish to TestPyPI
needs: [ build ]
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/project/pytest-smoke/
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: Packages
path: dist/
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
publish-to-pypi:
name: Publish to PyPI
needs: [ publish-to-testpypi ]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/pytest-smoke/
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: Packages
path: dist/
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1