File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- # cspell:ignore mislav
3
2
name : release
4
3
5
- " on " :
4
+ on :
6
5
release :
7
6
types : [published]
8
- workflow_dispatch :
9
7
10
8
jobs :
11
- pypi :
12
- name : Publish to PyPI registry
9
+ release :
13
10
environment : release
14
11
runs-on : ubuntu-22.04
15
12
permissions :
@@ -18,13 +15,12 @@ jobs:
18
15
env :
19
16
FORCE_COLOR : 1
20
17
PY_COLORS : 1
21
- TOXENV : pkg
22
18
23
19
steps :
24
- - name : Switch to using Python 3.10 by default
20
+ - name : Switch to using Python 3.12 by default
25
21
uses : actions/setup-python@v5
26
22
with :
27
- python-version : " 3.10 "
23
+ python-version : " 3.12 "
28
24
29
25
- name : Install tox
30
26
run : python3 -m pip install --user "tox>=4.0.0"
@@ -33,12 +29,20 @@ jobs:
33
29
uses : actions/checkout@v4
34
30
with :
35
31
fetch-depth : 0 # needed by setuptools-scm
36
- submodules : true
37
32
38
33
- name : Build dists
39
- run : python -m tox
34
+ run : python3 -m tox -e pkg
40
35
41
36
- name : Publish to pypi.org
42
- if : >- # "create" workflows run separately from "push" & "pull_request"
43
- github.event_name == 'release'
44
37
uses : pypa/gh-action-pypi-publish@release/v1
38
+
39
+ forum_post :
40
+ needs : release
41
+ runs-on : ubuntu-22.04
42
+
43
+ steps :
44
+ - name : Retreive the forum post script from team-devtools
45
+ run : curl -O https://raw.githubusercontent.com/ansible/team-devtools/main/.github/workflows/forum_post.py
46
+
47
+ - name : Run the forum post script
48
+ run : python3 forum_post.py ${{ github.event.repository.full_name }} ${{ github.event.release.tag_name }} ${{ secrets.FORUM_KEY }} ${{ secrets.FORUM_USER }}
You can’t perform that action at this time.
0 commit comments