@@ -3,9 +3,12 @@ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
3
3
on : push
4
4
5
5
jobs :
6
+ tests :
7
+ uses : ./.github/workflows/tests.yml
6
8
build :
7
9
name : Build distribution 📦
8
10
runs-on : ubuntu-latest
11
+ needs : tests
9
12
10
13
steps :
11
14
- uses : actions/checkout@v4
22
25
- name : Build a binary wheel and a source tarball
23
26
run : python3 -m build
24
27
- name : Store the distribution packages
25
- uses : actions/upload-artifact@v3
28
+ uses : actions/upload-artifact@v4
26
29
with :
27
30
name : python-package-distributions
28
31
path : dist/
42
45
43
46
steps :
44
47
- name : Download all the dists
45
- uses : actions/download-artifact@v3
48
+ uses : actions/download-artifact@v4
46
49
with :
47
50
name : python-package-distributions
48
51
path : dist/
63
66
64
67
steps :
65
68
- name : Download all the dists
66
- uses : actions/download-artifact@v3
69
+ uses : actions/download-artifact@v4
67
70
with :
68
71
name : python-package-distributions
69
72
path : dist/
@@ -92,26 +95,26 @@ jobs:
92
95
'${{ github.ref_name }}' dist/**
93
96
--repo '${{ github.repository }}'
94
97
95
- publish-to-testpypi :
96
- name : Publish Python 🐍 distribution 📦 to TestPyPI
97
- needs :
98
- - build
99
- runs-on : ubuntu-latest
100
-
101
- environment :
102
- name : testpypi
103
- url : https://test.pypi.org/p/certbot-nginx-unit
104
-
105
- permissions :
106
- id-token : write
107
-
108
- steps :
109
- - name : Download all the dists
110
- uses : actions/download-artifact@v3
111
- with :
112
- name : python-package-distributions
113
- path : dist/
114
- - name : Publish distribution 📦 to TestPyPI
115
- uses : pypa/gh-action-pypi-publish@release/v1
116
- with :
117
- repository-url : https://test.pypi.org/legacy/
98
+ # publish-to-testpypi:
99
+ # name: Publish Python 🐍 distribution 📦 to TestPyPI
100
+ # needs:
101
+ # - build
102
+ # runs-on: ubuntu-latest
103
+ #
104
+ # environment:
105
+ # name: testpypi
106
+ # url: https://test.pypi.org/p/certbot-nginx-unit
107
+ #
108
+ # permissions:
109
+ # id-token: write
110
+ #
111
+ # steps:
112
+ # - name: Download all the dists
113
+ # uses: actions/download-artifact@v4
114
+ # with:
115
+ # name: python-package-distributions
116
+ # path: dist/
117
+ # - name: Publish distribution 📦 to TestPyPI
118
+ # uses: pypa/gh-action-pypi-publish@release/v1
119
+ # with:
120
+ # repository-url: https://test.pypi.org/legacy/
0 commit comments