Skip to content

Commit

Permalink
Upload prepublished releases to test.pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
hohav committed Jul 30, 2024
1 parent 1fcbf49 commit e20de8b
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: Python
on:
push:
branches:
- main
- ci-test
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
release:
types: [prereleased]
jobs:
macos:
runs-on: macos-latest
Expand Down Expand Up @@ -121,3 +117,28 @@ jobs:
with:
name: wheels-${{ github.job }}-${{ matrix.target }}
path: dist
release:
name: Release
runs-on: ubuntu-latest
needs: [macos, windows, linux, linux-cross]
steps:
- uses: actions/download-artifact@v4
with:
pattern: wheels-*
merge-multiple: true
- name: Upload release assets
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: '*'
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
run: |
pip install --upgrade twine
twine upload --repository testpypi --skip-existing *

0 comments on commit e20de8b

Please sign in to comment.