File tree 1 file changed +27
-12
lines changed
1 file changed +27
-12
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,36 @@ jobs:
54
54
with :
55
55
path : dist/*
56
56
57
+ upload_test_pypi :
58
+ name : Upload to test PyPI (optional)
59
+ if : ${{ github.event.inputs.test_pypi_publish == 'true' }}
60
+ needs : [build]
61
+ runs-on : ubuntu-latest
62
+ environment :
63
+ name : testpypi
64
+ url : https://test.pypi.org/p/fenics-ufl
65
+ permissions :
66
+ id-token : write
67
+
68
+ steps :
69
+ - uses : actions/download-artifact@v4
70
+ with :
71
+ name : artifact
72
+ path : dist
73
+
74
+ - name : Push to test PyPI
75
+ uses : pypa/gh-action-pypi-publish@release/v1
76
+ with :
77
+ repository-url : https://test.pypi.org/legacy/
78
+
57
79
upload_pypi :
58
80
name : Upload to PyPI (optional)
81
+ if : ${{ github.event.inputs.pypi_publish == 'true' }}
59
82
needs : [build]
60
83
runs-on : ubuntu-latest
84
+ environment :
85
+ name : pypi
86
+ url : https://pypi.org/p/fenics-ufl
61
87
permissions :
62
88
id-token : write
63
89
69
95
70
96
- name : Push to PyPI
71
97
uses : pypa/gh-action-pypi-publish@release/v1
72
- if : ${{ github.event.inputs.pypi_publish == 'true' }}
73
- environment :
74
- name : pypi
75
- url : https://pypi.org/p/fenics-ufl
76
-
77
- - name : Push to Test PyPI
78
- uses : pypa/gh-action-pypi-publish@release/v1
79
- if : ${{ github.event.inputs.test_pypi_publish == 'true' }}
80
- environment :
81
- name : pypitest
82
- url : https://test.pypi.org/p/fenics-ufl
83
98
with :
84
- repository-url : https://test. pypi.org/legacy/
99
+ repository-url : https://pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments