Skip to content

Commit

Permalink
Updated python ci workflow to run on release.
Browse files Browse the repository at this point in the history
  • Loading branch information
concur1 authored and benfdking committed Nov 2, 2024
1 parent 309d766 commit 8c5f463
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/python-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
name: CI

on:
pull_request:
push:
tags:
- "v*.*.*"
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -137,18 +139,18 @@ jobs:
name: wheels-sdist
path: crates/cli/dist

# release:
# name: Release
# runs-on: ubuntu-latest
# environment: production
# #if: "startsWith(github.ref, 'refs/tags/')"
# needs: [linux, musllinux, windows, macos, sdist]
# steps:
# - uses: actions/download-artifact@v4
# - 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 wheels-*/*
release:
name: Release
runs-on: ubuntu-latest
environment: production
#if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, musllinux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v4
- 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 wheels-*/*

0 comments on commit 8c5f463

Please sign in to comment.