File tree Expand file tree Collapse file tree 2 files changed +58
-27
lines changed
Expand file tree Collapse file tree 2 files changed +58
-27
lines changed Original file line number Diff line number Diff line change @@ -31,16 +31,16 @@ jobs:
3131 name : release-dists
3232 path : dist/
3333
34- testpypi -publish :
34+ pypi -publish :
3535 runs-on : ubuntu-latest
3636 needs :
3737 - build
3838 permissions :
3939 id-token : write
4040
4141 environment :
42- name : testpypi
43- url : https://test. pypi.org/project/geocompy/${{ github.event.release.name }}
42+ name : pypi
43+ url : https://pypi.org/project/geocompy/${{ github.event.release.name }}
4444
4545 steps :
4646 - name : Retrieve release distributions
5353 uses : pypa/gh-action-pypi-publish@release/v1
5454 with :
5555 packages-dir : dist/
56- repository-url : https://test.pypi.org/legacy/
57-
58- # pypi-publish:
59- # runs-on: ubuntu-latest
60- # needs:
61- # - build
62- # permissions:
63- # id-token: write
64-
65- # environment:
66- # name: pypi
67- # url: https://pypi.org/project/geocompy/${{ github.event.release.name }}
68-
69- # steps:
70- # - name: Retrieve release distributions
71- # uses: actions/download-artifact@v4
72- # with:
73- # name: release-dists
74- # path: dist/
75-
76- # - name: Publish release distributions to PyPI
77- # uses: pypa/gh-action-pypi-publish@release/v1
78- # with:
79- # packages-dir: dist/
Original file line number Diff line number Diff line change 1+ name : Publishing test package
2+
3+ on :
4+ workflow_dispatch
5+
6+ permissions :
7+ contents : read
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - uses : actions/setup-python@v5
17+ with :
18+ python-version : " 3.x"
19+
20+ - name : Build release distributions
21+ run : |
22+ python -m pip install --upgrade pip
23+ python -m pip install --group development
24+ python -m pip install build
25+ python -m build
26+
27+ - name : Upload distributions
28+ uses : actions/upload-artifact@v4
29+ with :
30+ name : release-dists
31+ path : dist/
32+
33+ testpypi-publish :
34+ runs-on : ubuntu-latest
35+ needs :
36+ - build
37+ permissions :
38+ id-token : write
39+
40+ environment :
41+ name : testpypi
42+ url : https://test.pypi.org/project/geocompy/
43+
44+ steps :
45+ - name : Retrieve release distributions
46+ uses : actions/download-artifact@v4
47+ with :
48+ name : release-dists
49+ path : dist/
50+
51+ - name : Publish release distributions to PyPI
52+ uses : pypa/gh-action-pypi-publish@release/v1
53+ with :
54+ packages-dir : dist/
55+ repository-url : https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments