Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ on:
jobs:
pypi:
name: Publish to PyPI registry
environment: release
environment:
name: pypi
url: https://pypi.org/p/pytest-testinfra
runs-on: ubuntu-22.04

permissions:
id-token: write
env:
FORCE_COLOR: 1
PY_COLORS: 1

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # needed by setuptools-scm
- name: Switch to using Python 3.11 by default
uses: actions/setup-python@v5
with:
Expand All @@ -31,8 +31,4 @@ jobs:
run: |
tox -e packaging
- name: Publish to pypi.org
if: >- # "create" workflows run separately from "push" & "pull_request"
github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}