Skip to content

Commit 89030f7

Browse files
committed
build: update gh-action-pypi-publish dependency
Apparently the latest version of the action has a fix for the metadata problem. Signed-off-by: Daniel Wagner <wagi@kernel.org>
1 parent cc645d5 commit 89030f7

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

.github/workflows/release-python.yml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,6 @@ jobs:
3535
permissions:
3636
id-token: write
3737
steps:
38-
- name: Install Python (if missing)
39-
run: |
40-
sudo apt-get update
41-
sudo apt-get install -y python3 python3-pip
42-
43-
- name: Update python dependencies
44-
run: |
45-
python3 -m venv venv
46-
source venv/bin/activate
47-
pip install -U packaging
48-
4938
- uses: actions/download-artifact@v4
5039
with:
5140
name: artifact
@@ -54,7 +43,7 @@ jobs:
5443
- name: Publish package to TestPyPI
5544
env:
5645
PATH: ${{ github.workspace }}/venv/bin:$PATH
57-
uses: pypa/gh-action-pypi-publish@release/v1
46+
uses: pypa/gh-action-pypi-publish@release/v1.12.4
5847
with:
5948
repository-url: https://test.pypi.org/legacy/
6049

@@ -66,17 +55,6 @@ jobs:
6655
id-token: write
6756
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'linux-nvme/libnvme'
6857
steps:
69-
- name: Install Python (if missing)
70-
run: |
71-
sudo apt-get update
72-
sudo apt-get install -y python3 python3-pip
73-
74-
- name: Update python dependencies
75-
run: |
76-
python3 -m venv venv
77-
source venv/bin/activate
78-
pip install -U packaging
79-
8058
- name: Check if it is a release tag
8159
id: check-tag
8260
run: |
@@ -92,7 +70,5 @@ jobs:
9270
path: dist
9371

9472
- name: Publish package to PyPI
95-
env:
96-
PATH: ${{ github.workspace }}/venv/bin:$PATH
97-
uses: pypa/gh-action-pypi-publish@release/v1
73+
uses: pypa/gh-action-pypi-publish@release/v1.12.4
9874
if: steps.check-tag.outputs.match == 'true'

0 commit comments

Comments
 (0)