Skip to content

Commit ce86c99

Browse files
committed
temp disable final-release workflow step
1 parent ba4ed59 commit ce86c99

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

.github/workflows/python-workflow.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -79,41 +79,41 @@ jobs:
7979
repository-url: https://test.pypi.org/legacy/
8080
verbose: true
8181

82-
final-release:
83-
name: Publish to PyPI
84-
if: startsWith(github.ref, 'refs/tags/v')
85-
runs-on: ubuntu-latest
86-
needs: build
87-
environment:
88-
name: pypi
89-
url: https://pypi.org/p/${{ env.PYPI_PACKAGE_NAME }}
90-
permissions:
91-
id-token: write
92-
steps:
93-
- name: Checkout
94-
uses: actions/checkout@v4
95-
- name: Download artifacts
96-
uses: actions/download-artifact@v4
97-
with:
98-
name: python-package-distributions
99-
path: dist/
100-
- name: Verify version
101-
run: |
102-
TAG_VERSION=${{ github.ref_name }}
103-
TAG_VERSION=${TAG_VERSION#v}
104-
WHL_VERSION=$(unzip -p dist/*.whl '*/METADATA' | grep '^Version:' | awk '{print $2}')
105-
WHL_VERSION=${WHL_VERSION#v}
106-
if [ "$TAG_VERSION" != "$WHL_VERSION" ]; then
107-
echo "Version mismatch: Git tag version ($TAG_VERSION) does not match wheel version ($WHL_VERSION)"
108-
exit 1
109-
fi
110-
- name: Create GitHub Release
111-
env:
112-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
113-
run: |
114-
gh release create "${{ github.ref_name }}" dist/* --title "${{ github.ref_name }}" --notes "Release ${GITHUB_REF_NAME}"
115-
- name: Publish to PyPI
116-
uses: pypa/gh-action-pypi-publish@release/v1
117-
with:
118-
verbose: true
119-
repository-url: https://pypi.org/legacy/
82+
# final-release:
83+
# name: Publish to PyPI
84+
# if: startsWith(github.ref, 'refs/tags/v')
85+
# runs-on: ubuntu-latest
86+
# needs: build
87+
# environment:
88+
# name: pypi
89+
# url: https://pypi.org/p/${{ env.PYPI_PACKAGE_NAME }}
90+
# permissions:
91+
# id-token: write
92+
# steps:
93+
# - name: Checkout
94+
# uses: actions/checkout@v4
95+
# - name: Download artifacts
96+
# uses: actions/download-artifact@v4
97+
# with:
98+
# name: python-package-distributions
99+
# path: dist/
100+
# - name: Verify version
101+
# run: |
102+
# TAG_VERSION=${{ github.ref_name }}
103+
# TAG_VERSION=${TAG_VERSION#v}
104+
# WHL_VERSION=$(unzip -p dist/*.whl '*/METADATA' | grep '^Version:' | awk '{print $2}')
105+
# WHL_VERSION=${WHL_VERSION#v}
106+
# if [ "$TAG_VERSION" != "$WHL_VERSION" ]; then
107+
# echo "Version mismatch: Git tag version ($TAG_VERSION) does not match wheel version ($WHL_VERSION)"
108+
# exit 1
109+
# fi
110+
# - name: Create GitHub Release
111+
# env:
112+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
113+
# run: |
114+
# gh release create "${{ github.ref_name }}" dist/* --title "${{ github.ref_name }}" --notes "Release ${GITHUB_REF_NAME}"
115+
# - name: Publish to PyPI
116+
# uses: pypa/gh-action-pypi-publish@release/v1
117+
# with:
118+
# verbose: true
119+
# repository-url: https://pypi.org/legacy/

0 commit comments

Comments
 (0)