Skip to content
Merged

v0 #240

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/_build-wheel-release-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
default: 0
required: false
type: number
release_branch:
description: 'Branch to release from. If not provided, will default to main'
default: main
required: true
type: string
secrets:
PYPI_TOKEN:
description: 'PyPI token'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/_release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: update changelog
branch: main
branch: {{ inputs.release_branch }}

release-delete-create-new-tag:
# For a full release, we delete and create a new tag to reflect the latest changes in the CHANGELOG.rst.
Expand All @@ -52,7 +52,7 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v4
with:
ref: main
ref: {{ inputs.release_branch }}
- name: Delete the local tag
run: |
git fetch --tags
Expand All @@ -79,7 +79,7 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v4
with:
ref: main
ref: {{ inputs.release_branch }}
- name: Generate GH release notes for release
run: |
wget https://raw.githubusercontent.com/scikit-package/release-scripts/v0/.github/workflows/get-latest-changelog.py
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/templates/check-news-item.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Check for News
on:
pull_request_target:
branches:
- main
- {{ inputs.release_branch }}

jobs:
check-news-item:
Expand Down
23 changes: 23 additions & 0 deletions news/release-branch.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

* Make release branch an optional input for releases.

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>