Skip to content

Commit 6642c70

Browse files
committed
ci: add automated GitHub release workflow
1 parent e19348b commit 6642c70

3 files changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Extract latest changelog entry
19+
id: changelog
20+
shell: bash
21+
run: |
22+
BODY=$(awk '
23+
/^## `v/ {
24+
if (found) exit
25+
found=1
26+
}
27+
found { print }
28+
' CHANGELOG.md)
29+
30+
{
31+
echo 'body<<EOF'
32+
echo "$BODY"
33+
echo 'EOF'
34+
} >> "$GITHUB_OUTPUT"
35+
36+
- name: Create GitHub Release
37+
uses: softprops/action-gh-release@v2
38+
with:
39+
body: ${{ steps.changelog.outputs.body }}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Change Log
2+
3+
## `v1.0.0` - 13/06/2026
4+
5+
### Added
6+
7+
- Initial release

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"dev:firefox": "wxt -b firefox",
1212
"build": "wxt build",
1313
"build:firefox": "wxt build -b firefox",
14+
"build:opera": "wxt build -b opera",
1415
"zip": "wxt zip",
1516
"zip:firefox": "wxt zip -b firefox",
1617
"compile": "tsc --noEmit",

0 commit comments

Comments
 (0)