Skip to content

Commit 796973a

Browse files
committed
ci: actions version + test upload
1 parent 7890930 commit 796973a

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
submodules: "recursive"
2020

2121
- name: Set up Python 3.11
22-
uses: actions/setup-python@v3
22+
uses: actions/setup-python@v4
2323
with:
2424
python-version: 3.11
2525

@@ -104,7 +104,7 @@ jobs:
104104
submodules: "recursive"
105105

106106
- name: Set up Python 3.11
107-
uses: actions/setup-python@v3
107+
uses: actions/setup-python@v4
108108
with:
109109
python-version: 3.11
110110

@@ -140,7 +140,7 @@ jobs:
140140
id-token: write
141141
steps:
142142
- name: Download all artifacts
143-
uses: actions/download-artifact@v3
143+
uses: actions/download-artifact@v4
144144
with:
145145
path: dist
146146

.github/workflows/wheel.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,17 @@ jobs:
5050
path: dist/*.tar.gz
5151

5252
upload:
53-
name: Checkout Artifacts
53+
name: Upload to PyPI
5454
needs: [make-wheels, make-sdist]
5555
runs-on: ubuntu-latest
56+
environment:
57+
name: pypi
58+
url: https://test.pypi.org/legacy/
59+
permissions:
60+
id-token: write
5661
steps:
5762
- name: Download all artifacts
58-
uses: actions/download-artifact@v3
63+
uses: actions/download-artifact@v4
5964
with:
6065
path: dist
6166

@@ -71,3 +76,6 @@ jobs:
7176
cd ..
7277
echo "* Prepared artifacts:"
7378
ls dist/
79+
80+
- name: Publish package distributions to PyPI
81+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)