Skip to content

Commit

Permalink
Fix uploading to TestPyPI (#345)
Browse files Browse the repository at this point in the history
* Clear up uploading to TestPyPI

Signed-off-by: Piotr Pawłowski <[email protected]>

---------

Signed-off-by: Piotr Pawłowski <[email protected]>
  • Loading branch information
pawloch00 authored Jan 27, 2025
1 parent 5259676 commit ac7f3e8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build_wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@

name: PyPi releases

on:
push:
on:
workflow_dispatch:
inputs:
testpypi:
Expand All @@ -42,7 +41,7 @@ jobs:
with:
python-version: "3.x"
- name: Install pypa/build
run: |
run: >-
python3 -m
pip install
build
Expand All @@ -67,12 +66,10 @@ jobs:
- build
runs-on: ubuntu-latest
environment:
# We should configure trusted publishing as specified here:
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#configuring-trusted-publishing
name: testpypi
url: https://test.pypi.org/p/xpk
url: https://test.pypi.org/p/xpk-testing
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
Expand All @@ -82,7 +79,8 @@ jobs:
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/ `
repository-url: https://test.pypi.org/legacy/
verbose: true
publish-to-pypi:
name: Publish Python distribution to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
Expand Down

0 comments on commit ac7f3e8

Please sign in to comment.