Skip to content

Commit c5fdd1b

Browse files
committed
more complex release
1 parent bee65b9 commit c5fdd1b

File tree

3 files changed

+10
-91
lines changed

3 files changed

+10
-91
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.

HOW_TO_RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ upstream https://github.com/pydata/xarray (push)
4848
release.
4949
5. Open a PR with the release summary and whatsnew changes; in particular the
5050
release headline should get feedback from the team on what's important to include.
51-
Apply the `Release` label to the PR to trigger a test build action, and upload to TestPyPI.
51+
Apply the `Release` label to the PR to trigger a test build action.
5252
5353
6. After merging, again ensure your main branch is synced to upstream:
5454
```sh

0 commit comments

Comments
 (0)