Skip to content

Commit 4c4b9c7

Browse files
committed
more complex release
1 parent bee65b9 commit 4c4b9c7

File tree

2 files changed

+9
-90
lines changed

2 files changed

+9
-90
lines changed

.github/workflows/pypi-release.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,19 @@ on:
66
push:
77
tags:
88
- "v*"
9+
pull_request:
10+
types: [opened, reopened, synchronize, labeled]
11+
workflow_dispatch:
912

1013
jobs:
1114
build-artifacts:
1215
runs-on: ubuntu-latest
13-
if: github.repository == 'pydata/xarray'
16+
if: ${{ github.repository == 'pydata/xarray' && (
17+
(contains(github.event.pull_request.labels.*.name, 'Release') && github.event_name == 'pull_request') ||
18+
github.event_name == 'release' ||
19+
github.event_name == 'workflow_dispatch' ||
20+
startsWith(github.ref, 'refs/tags/v')
21+
) }}
1422
steps:
1523
- uses: actions/checkout@v4
1624
with:

.github/workflows/test-pypi-release.yaml

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)