-
-
Notifications
You must be signed in to change notification settings - Fork 360
34 lines (32 loc) · 734 Bytes
/
release.yml
File metadata and controls
34 lines (32 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
name: release
on:
release:
types: [published]
jobs:
pypi:
name: Publish to PyPI registry
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@v5
- name: Switch to using Python 3.11 by default
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Build dists
run: |
tox -e packaging
- name: Publish to pypi.org
uses: pypa/gh-action-pypi-publish@release/v1