Skip to content

Commit f63f310

Browse files
committed
chore: Comment out TestPyPI publishing job
1 parent 7057625 commit f63f310

1 file changed

Lines changed: 38 additions & 38 deletions

File tree

.github/workflows/publish-to-pypi.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -47,44 +47,44 @@ jobs:
4747
- name: Publish distribution 📦 to PyPI
4848
uses: pypa/gh-action-pypi-publish@release/v1
4949

50-
publish-to-testpypi:
51-
name: Publish Python 🐍 distribution 📦 to TestPyPI
52-
needs:
53-
- build
54-
runs-on: ubuntu-latest
55-
environment:
56-
name: testpypi
57-
url: https://test.pypi.org/p/platform_utils
58-
permissions:
59-
id-token: write
60-
61-
steps:
62-
- uses: actions/checkout@v4
63-
- name: Download all the dists
64-
uses: actions/download-artifact@v4
65-
with:
66-
name: python-package-distributions
67-
path: dist/
68-
- name: Install Python
69-
uses: actions/setup-python@v5
70-
with:
71-
python-version: "3.x"
72-
- name: Update version with git hash
73-
run: |
74-
pip install wheel
75-
HASH=$(git rev-parse --short HEAD)
76-
for wheel in dist/*.whl; do
77-
NEW_WHEEL=$(echo $wheel | sed "s/-\([0-9.]*\)-/-\1.dev0+g${HASH}-/")
78-
mv "$wheel" "$NEW_WHEEL"
79-
done
80-
for sdist in dist/*.tar.gz; do
81-
NEW_SDIST=$(echo $sdist | sed "s/-\([0-9.]*\)\./-\1.dev0+g${HASH}./")
82-
mv "$sdist" "$NEW_SDIST"
83-
done
84-
- name: Publish distribution 📦 to TestPyPI
85-
uses: pypa/gh-action-pypi-publish@release/v1
86-
with:
87-
repository-url: https://test.pypi.org/legacy/
50+
# publish-to-testpypi:
51+
# name: Publish Python 🐍 distribution 📦 to TestPyPI
52+
# needs:
53+
# - build
54+
# runs-on: ubuntu-latest
55+
# environment:
56+
# name: testpypi
57+
# url: https://test.pypi.org/p/platform_utils
58+
# permissions:
59+
# id-token: write
60+
#
61+
# steps:
62+
# - uses: actions/checkout@v4
63+
# - name: Download all the dists
64+
# uses: actions/download-artifact@v4
65+
# with:
66+
# name: python-package-distributions
67+
# path: dist/
68+
# - name: Install Python
69+
# uses: actions/setup-python@v5
70+
# with:
71+
# python-version: "3.x"
72+
# - name: Update version with git hash
73+
# run: |
74+
# pip install wheel
75+
# HASH=$(git rev-parse --short HEAD)
76+
# for wheel in dist/*.whl; do
77+
# NEW_WHEEL=$(echo $wheel | sed "s/-\([0-9.]*\)-/-\1.dev0+g${HASH}-/")
78+
# mv "$wheel" "$NEW_WHEEL"
79+
# done
80+
# for sdist in dist/*.tar.gz; do
81+
# NEW_SDIST=$(echo $sdist | sed "s/-\([0-9.]*\)\./-\1.dev0+g${HASH}./")
82+
# mv "$sdist" "$NEW_SDIST"
83+
# done
84+
# - name: Publish distribution 📦 to TestPyPI
85+
# uses: pypa/gh-action-pypi-publish@release/v1
86+
# with:
87+
# repository-url: https://test.pypi.org/legacy/
8888

8989
github-release:
9090
name: Sign the Python 🐍 distribution 📦 with Sigstore and upload to GitHub Release

0 commit comments

Comments
 (0)