File tree 1 file changed +11
-9
lines changed
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 20
20
jobs :
21
21
code_publish :
22
22
runs-on : ubuntu-latest
23
+ environment : release
24
+ permissions :
25
+ id-token : write
23
26
strategy :
24
27
matrix :
25
28
python-version : [3.8]
@@ -28,13 +31,12 @@ jobs:
28
31
- uses : actions/setup-python@v4
29
32
with :
30
33
python-version : ${{ matrix.python-version }}
34
+ - name : Install deps
35
+ run : pip install -U pip setuptools virtualenv wheel
36
+ - name : Build sdist
37
+ run : python3 setup.py sdist bdist_wheel
38
+ - uses : actions/upload-artifact@v3
39
+ with :
40
+ path : ./dist/*
31
41
- name : Deploy to Pypi
32
- env :
33
- TWINE_PASSWORD : ${{ secrets.TWINE_PASSWORD }}
34
- TWINE_USERNAME : qiskit
35
- run : |
36
- pip install -U twine pip setuptools virtualenv wheel
37
- python3 setup.py sdist bdist_wheel
38
- twine upload dist/qiskit*
39
- shell : bash
40
-
42
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments