Skip to content

[python-conprof] also publish package on test.pypi.com when releasing… #10

[python-conprof] also publish package on test.pypi.com when releasing…

[python-conprof] also publish package on test.pypi.com when releasing… #10

name: release staging
on:
push:
branches:
- master
jobs:
test:
name: Test (${{ matrix.version }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- run: |
PYTHON_VERSION=${{ matrix.version }} make test
strategy:
fail-fast: false
matrix:
version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
gen-binary:
name: Gen Binary - Linux - AMD64
runs-on: ubuntu-latest
needs: test
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- run: |
make build
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: wheel_dist
path: |
wheel_dist/*
release:
name: Release
runs-on: ubuntu-latest
needs: gen-binary
steps:
- uses: actions/checkout@v5
- name: Download build artifacts
uses: actions/download-artifact@v5
- run: |
sudo pip install twine
./scripts/releasing/release.sh wheel_dist
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TEST_TOKEN }}
TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/
TWINE_NON_INTERACTIVE: 1
TWINE_USERNAME: __token__