Skip to content

Commit 8e2794d

Browse files
committed
Update build_and_publish.yml
1 parent 3978fa1 commit 8e2794d

1 file changed

Lines changed: 6 additions & 15 deletions

File tree

.github/workflows/build_and_publish.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
# This file is autogenerated by maturin v1.8.3
2-
# To update, run
3-
#
4-
# maturin generate-ci -v -o .\.github\workflows\build_and_publish.yml github
5-
#
6-
name: CI
1+
name: Build and Publish Python Package
72

83
on:
9-
push:
10-
branches:
11-
- main
12-
tags:
13-
- '*'
14-
pull_request:
15-
workflow_dispatch:
4+
release:
5+
types: [published]
6+
workflow_dispatch: # Keeping manual trigger for testing
167

178
permissions:
189
contents: read
@@ -155,7 +146,7 @@ jobs:
155146
release:
156147
name: Release
157148
runs-on: ubuntu-latest
158-
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
149+
# if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
159150
# needs: [linux, musllinux, windows, macos, sdist]
160151
needs: [windows, sdist]
161152
environment: pypi
@@ -173,7 +164,7 @@ jobs:
173164
with:
174165
subject-path: 'wheels-*/*'
175166
- name: Publish to PyPI
176-
if: ${{ startsWith(github.ref, 'refs/tags/') }}
167+
# if: ${{ startsWith(github.ref, 'refs/tags/') }}
177168
uses: PyO3/maturin-action@v1
178169
with:
179170
command: upload

0 commit comments

Comments
 (0)