[python-conprof] revert artifact upload to test.pypi.org on release s… #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release prod | |
on: | |
push: | |
tags: | |
- 'v*' | |
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 | |
with: | |
name: wheel_dist | |
- run: | | |
mkdir -p wheel_dist | |
mv *.whl wheel_dist | |
sudo pip install twine | |
./scripts/releasing/release.sh wheel_dist | |
env: | |
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | |
TWINE_NON_INTERACTIVE: 1 | |
TWINE_USERNAME: __token__ |