Skip to content

Commit fce2170

Browse files
committed
ci(releasing): updates per templates pointing to latest on main
Signed-off-by: Vaughn Dice <[email protected]>
1 parent c9c1417 commit fce2170

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- main
6+
- "v[0-9]+.[0-9]+"
67
tags:
78
- "v*"
89

@@ -289,7 +290,14 @@ jobs:
289290

290291
- name: Set the spin tag
291292
shell: bash
292-
run: echo "SPIN_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
293+
run: |
294+
echo "SPIN_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
295+
296+
- name: Set the PR base branch
297+
shell: bash
298+
run: |
299+
IFS=. read -r major minor patch <<< "${{ env.SPIN_TAG }}"
300+
echo "RELEASE_BRANCH=$major.$minor" >> $GITHUB_ENV
293301
294302
- name: Change sdk version
295303
shell: bash
@@ -312,7 +320,7 @@ jobs:
312320
title: "feat(templates): update sdk to ${{ env.SPIN_TAG }}"
313321
body: Update the SDK version used by the templates
314322
branch: update-sdk-${{ env.SPIN_TAG }}
315-
base: main
323+
base: ${{ env.RELEASE_BRANCH }}
316324
delete-branch: true
317325
committer: fermybot <[email protected]>
318326
author: fermybot <[email protected]>

docs/content/release-process.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ To cut a major / minor release of Spin, you will need to do the following:
1414

1515
1. Switch to the release branch locally and update versions (e.g. `1.1.0-pre0` could `1.1.0`).
1616
- Bump the version in Spin's `Cargo.toml`
17-
- Update SDK_VERSION in `templates/Makefile`
1817
- Run `make build` so that `Cargo.lock` and other associated files are updated
1918

2019
PR these changes to the release branch ensuring that pull request has a base corresponding to the release branch (e.g. `v1.1`).
@@ -62,7 +61,6 @@ $ ./.github/gh-backport.sh <pull-request> <branch-name>
6261
6362
1. Switch to the release branch locally and update versions (e.g. `1.1.0-pre0` could `1.1.1`).
6463
- Bump the version in Spin's `Cargo.toml`
65-
- Update SDK_VERSION in `templates/Makefile`
6664
- Run `make build` so that `Cargo.lock` and other associated files are updated
6765
6866
PR these changes to the release branch ensuring that pull request has a base corresponding to the release branch (e.g. `v1.1`).

templates/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SDK_VERSION ?= v2.0.0-pre0
1+
SDK_VERSION ?= v0.0.0
22

33
bump-versions: bump-go-versions bump-rust-versions
44

0 commit comments

Comments
 (0)