Skip to content

Commit 21a4195

Browse files
authored
Fixed release workflows (#416)
1 parent 770cd66 commit 21a4195

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.github/workflows/dist-release.yml renamed to .github/workflows/release.yml

+4-14
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,19 @@
1-
name: dist-release
1+
name: Release
22

33
on:
4-
pull_request:
5-
types: [opened, synchronize]
6-
paths-ignore:
7-
- 'docs/**' # Ignore changes in the docs folder for pull requests
8-
- '.github' # Ignore changes in the .github folder for pull requests
94
push:
10-
branches: ['master']
11-
paths-ignore:
12-
- 'docs/**' # Ignore changes in the docs folder for pushes
13-
- '.github' # Ignore changes in the .github folder for pushes
145
tags:
15-
- 'v*' # only release a versioned tag, such as v.X.Y.Z
6+
- 'v*'
167

178
jobs:
18-
release:
9+
publish:
1910
runs-on: ubuntu-latest
2011
environment: release
2112
permissions:
2213
# Used to authenticate to PyPI via OIDC and sign the release's artifacts with sigstore-python.
2314
id-token: write
2415
# Used to attach signing artifacts to the published release.
2516
contents: write
26-
2717
steps:
2818
- uses: actions/checkout@v4
2919
with:
@@ -46,6 +36,6 @@ jobs:
4636

4737
- name: Publish a Python distribution to PyPI
4838
uses: pypa/gh-action-pypi-publish@release/v1
49-
if: startsWith(github.ref, 'refs/tags/v')
5039
with:
5140
packages-dir: python/dist/
41+

0 commit comments

Comments
 (0)