Skip to content

Commit 8c175eb

Browse files
authored
Update release workflow (#365)
1 parent 67bc5ff commit 8c175eb

File tree

1 file changed

+2
-35
lines changed

1 file changed

+2
-35
lines changed

.github/workflows/release.yml

+2-35
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,10 @@
11
---
2-
# cspell:ignore mislav
32
name: release
43

54
on:
65
release:
76
types: [published]
87

98
jobs:
10-
pypi:
11-
name: Publish to PyPI registry
12-
environment: release
13-
runs-on: ubuntu-22.04
14-
permissions:
15-
id-token: write
16-
17-
env:
18-
FORCE_COLOR: 1
19-
PY_COLORS: 1
20-
TOXENV: pkg
21-
22-
steps:
23-
- name: Switch to using Python 3.10 by default
24-
uses: actions/setup-python@v5
25-
with:
26-
python-version: "3.10"
27-
28-
- name: Install tox
29-
run: python3 -m pip install --user "tox>=4.0.0"
30-
31-
- name: Check out src from Git
32-
uses: actions/checkout@v4
33-
with:
34-
fetch-depth: 0 # needed by setuptools-scm
35-
submodules: true
36-
37-
- name: Build dists
38-
run: python3 -m tox
39-
40-
- name: Publish to pypi.org
41-
if: >- # "create" workflows run separately from "push" & "pull_request"
42-
github.event_name == 'release'
43-
uses: pypa/gh-action-pypi-publish@release/v1
9+
release:
10+
uses: ansible/team-devtools/.github/workflow/release.yml@main

0 commit comments

Comments
 (0)