Skip to content

Commit

Permalink
Release pipeline for python package
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-k committed Feb 16, 2024
1 parent 8c72520 commit 66cbeed
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
branches:
- main
tags:
- '*'
- 'argmin-testfunctions-py-v*'
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -105,19 +105,19 @@ jobs:
name: wheels
path: dist

# release:
# name: Release
# runs-on: ubuntu-latest
# if: "startsWith(github.ref, 'refs/tags/')"
# needs: [linux, windows, macos, sdist]
# steps:
# - uses: actions/download-artifact@v3
# with:
# name: wheels
# - name: Publish to PyPI
# uses: PyO3/maturin-action@v1
# env:
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
# with:
# command: upload
# args: --non-interactive --skip-existing *
release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/argmin-testfunctions-py-v')"
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing *

0 comments on commit 66cbeed

Please sign in to comment.