File tree 1 file changed +60
-0
lines changed
1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : " release"
3
+
4
+ on : # yamllint disable
5
+ release :
6
+ types :
7
+ - " published"
8
+
9
+ jobs :
10
+ build :
11
+ name : " Build package with poetry"
12
+ # https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
13
+ runs-on : " ubuntu-24.04"
14
+ steps :
15
+ - uses : " actions/checkout@v4"
16
+ - run : " pipx install poetry"
17
+ - run : " poetry build"
18
+
19
+ - uses : " actions/upload-artifact@v4"
20
+ with :
21
+ name : " distfiles"
22
+ path : " dist/"
23
+ if-no-files-found : " error"
24
+
25
+ publish-github :
26
+ name : " Upload to GitHub Release"
27
+ runs-on : " ubuntu-24.04"
28
+ permissions :
29
+ contents : " write"
30
+ needs : " build"
31
+ steps :
32
+ - uses : " actions/checkout@v4"
33
+
34
+ - uses : " actions/download-artifact@v4"
35
+ with :
36
+ name : " distfiles"
37
+ path : " dist/"
38
+
39
+ - run : " gh release upload ${{ github.event.release.tag_name }} dist/*.{tar.gz,whl}"
40
+ env :
41
+ GH_TOKEN : " ${{ github.token }}"
42
+
43
+
44
+ publish-pypi :
45
+ name : " Upload to PyPI"
46
+ runs-on : " ubuntu-24.04"
47
+ environment :
48
+ name : " pypi"
49
+ url : " https://pypi.org/p/mkdocs-ansible-collection"
50
+ permissions :
51
+ id-token : " write"
52
+ needs : " build"
53
+ steps :
54
+ - uses : " actions/download-artifact@v4"
55
+ with :
56
+ name : " distfiles"
57
+ path : " dist/"
58
+
59
+ - name : " Publish package distributions to PyPI"
60
+ uses : " pypa/gh-action-pypi-publish@release/v1"
You can’t perform that action at this time.
0 commit comments