File tree Expand file tree Collapse file tree 1 file changed +23
-8
lines changed Expand file tree Collapse file tree 1 file changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -13,25 +13,40 @@ jobs:
13
13
14
14
steps :
15
15
- uses : actions/checkout@v4
16
- - name : Set up Python
17
- uses : actions/setup-python@v5
18
- with :
19
- python-version : " 3.9"
20
- - name : Install pypa/build
21
- run : python3 -m pip install build --user
16
+ - name : Install Hatch
17
+ uses : pypa/hatch@install
22
18
- name : Build a binary wheel and a source tarball
23
- run : python3 -m build
19
+ run : hatch build
24
20
- name : Store the distribution packages
25
21
uses : actions/upload-artifact@v4
26
22
with :
27
23
name : python-package-distributions
28
24
path : dist/
25
+ publish-to-pypi :
26
+ name : >-
27
+ Publish Python 🐍 distribution 📦 to PyPI
28
+ needs :
29
+ - build
30
+ runs-on : ubuntu-latest
31
+ environment :
32
+ name : pypi
33
+ url : https://pypi.org/p/rsnapshot-docker-compose-backup
34
+ permissions :
35
+ id-token : write # IMPORTANT: mandatory for trusted publishing
36
+ steps :
37
+ - name : Download all the dists
38
+ uses : actions/download-artifact@v3
39
+ with :
40
+ name : python-package-distributions
41
+ path : dist/
42
+ - name : Publish distribution 📦 to PyPI
43
+ uses : pypa/gh-action-pypi-publish@release/v1
29
44
github-release :
30
45
name : >-
31
46
Sign the Python 🐍 distribution 📦 with Sigstore
32
47
and upload them to GitHub Release
33
48
needs :
34
- - build
49
+ - publish-to-pypi
35
50
runs-on : ubuntu-latest
36
51
permissions :
37
52
contents : write # IMPORTANT: mandatory for making GitHub Releases
You can’t perform that action at this time.
0 commit comments