File tree Expand file tree Collapse file tree 2 files changed +17
-23
lines changed Expand file tree Collapse file tree 2 files changed +17
-23
lines changed Original file line number Diff line number Diff line change 8
8
python-packaging :
9
9
name : 🐍 Packaging
10
10
uses : ./.github/workflows/reusable-python-packaging.yml
11
- with :
12
- package-name : mqt.core
11
+
12
+ deploy :
13
+ if : github.event_name == 'release' && github.event.action == 'published'
14
+ name : 🚀 Deploy to PyPI
15
+ runs-on : ubuntu-latest
16
+ environment :
17
+ name : pypi
18
+ url : https://pypi.org/p/mqt.core
19
+ permissions :
20
+ id-token : write
21
+ needs : [python-packaging]
22
+ steps :
23
+ - uses : actions/download-artifact@v3
24
+ with :
25
+ name : artifact
26
+ path : dist
27
+ - uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ name: 🐍 • Packaging
3
3
on :
4
4
workflow_call :
5
5
inputs :
6
- package-name :
7
- description : " The name of the Python package"
8
- required : true
9
- type : string
10
6
setup-z3 :
11
7
description : " Whether to set up Z3"
12
8
default : false
@@ -104,20 +100,3 @@ jobs:
104
100
- uses : actions/upload-artifact@v3
105
101
with :
106
102
path : ./wheelhouse/*.whl
107
-
108
- deploy :
109
- if : github.event_name == 'release' && github.event.action == 'published'
110
- name : 🚀 Deploy to PyPI
111
- runs-on : ubuntu-latest
112
- environment :
113
- name : pypi
114
- url : https://pypi.org/p/${{ inputs.package-name }}
115
- permissions :
116
- id-token : write
117
- needs : [build_wheels, build_sdist, build_wheels_emulation]
118
- steps :
119
- - uses : actions/download-artifact@v3
120
- with :
121
- name : artifact
122
- path : dist
123
- - uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments