File tree Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change 6
6
- ' *'
7
7
8
8
jobs :
9
- deploy -package :
10
- name : Publish package
9
+ build -package :
10
+ name : Build package for publication
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v4
@@ -24,15 +24,27 @@ jobs:
24
24
25
25
- uses : actions/upload-artifact@v4
26
26
with :
27
+ name : openqasm3_pygments-dist
27
28
path : |
28
29
./dist/*.whl
29
30
./dist/*.tar.gz
30
31
31
- - name : Publish to PyPI
32
- env :
33
- TWINE_USERNAME : __token__
34
- TWINE_PASSWORD : ${{ secrets.OPENQASM_BOT_PYPI_TOKEN }}
35
- run : twine upload dist/*.whl dist/*.tar.gz
32
+ deploy-package :
33
+ name : Deploy package to PyPI
34
+ runs-on : ubuntu-latest
35
+ needs : ["build-package"]
36
+ environment : release
37
+ permissions :
38
+ id-token : write
39
+ steps :
40
+ - uses : actions/download-artifact@v4
41
+ with :
42
+ name : openqasm3_pygments-dist
43
+ path : dist
44
+
45
+ - uses : pypa/gh-action-pypi-publish@release/v1
46
+ with :
47
+ packages-dir : dist
36
48
37
49
- name : Publish to GitHub
38
50
uses : softprops/action-gh-release@v2
You can’t perform that action at this time.
0 commit comments