Skip to content

Commit 6950deb

Browse files
committed
Prepare v0.2.1 release
- update release workflow to actions/checkout@v6 - fix release packaging step to run build-release.ps1 - make release workflow reusable when a GitHub release already exists - bump extension version to 0.2.1 - add changelog entries for v0.2.1
1 parent ec60d14 commit 6950deb

3 files changed

Lines changed: 24 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,29 @@ jobs:
1414

1515
steps:
1616
- name: Check out repository
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818

1919
- name: Build release archive
2020
id: build
2121
shell: pwsh
2222
run: |
23-
$archivePath = ./scripts/build-release.ps1
23+
$archivePath = pwsh -File ./scripts/build-release.ps1
24+
if (-not $archivePath) {
25+
throw "build-release.ps1 did not return an archive path"
26+
}
2427
"archive_path=$archivePath" >> $env:GITHUB_OUTPUT
2528
26-
- name: Create GitHub release
29+
- name: Create or update GitHub release
2730
env:
2831
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2932
shell: pwsh
3033
run: |
31-
gh release create $env:GITHUB_REF_NAME "${{ steps.build.outputs.archive_path }}" --title "Steam Promo Watch $env:GITHUB_REF_NAME" --generate-notes
34+
$tag = $env:GITHUB_REF_NAME
35+
$archivePath = "${{ steps.build.outputs.archive_path }}"
36+
37+
gh release view $tag *> $null
38+
if ($LASTEXITCODE -eq 0) {
39+
gh release upload $tag $archivePath --clobber
40+
} else {
41+
gh release create $tag $archivePath --title "Steam Promo Watch $tag" --generate-notes
42+
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.2.1
4+
5+
### What's new
6+
7+
- Updated the GitHub Actions release workflow to use `actions/checkout@v6`, which is compatible with Node 24.
8+
- Fixed the release workflow so it actually runs the packaging script and captures the generated archive path.
9+
- Made the release workflow idempotent: if a GitHub release already exists for the tag, the workflow now uploads or replaces the asset instead of failing.
10+
311
## 0.2.0
412

513
### What's new

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "Steam Promo Watch",
44
"description": "Tracks new Steam free-to-keep promotions and notifies you about new giveaways.",
5-
"version": "0.2.0",
5+
"version": "0.2.1",
66
"minimum_chrome_version": "120",
77
"permissions": [
88
"alarms",

0 commit comments

Comments
 (0)