Skip to content

Commit 0b2f245

Browse files
Janzo YipJanzo Yip
authored andcommitted
ci: add auto-release workflow + update CHANGELOG for v0.1.0
1 parent c304962 commit 0b2f245

2 files changed

Lines changed: 60 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Extract version from tag
21+
id: version
22+
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
23+
24+
- name: Extract changelog for this version
25+
id: changelog
26+
run: |
27+
VERSION="${{ steps.version.outputs.VERSION }}"
28+
# Extract section between this version header and the next one
29+
NOTES=$(sed -n "/^## \[${VERSION}\]/,/^## \[/p" CHANGELOG.md | sed '$d' | tail -n +2)
30+
if [ -z "$NOTES" ]; then
31+
NOTES=$(sed -n "/^## ${VERSION}/,/^## /p" CHANGELOG.md | sed '$d' | tail -n +2)
32+
fi
33+
if [ -z "$NOTES" ]; then
34+
NOTES="See CHANGELOG.md for details."
35+
fi
36+
# Write to file to preserve multiline
37+
echo "$NOTES" > /tmp/release_notes.md
38+
# Append full changelog link
39+
echo "" >> /tmp/release_notes.md
40+
echo "---" >> /tmp/release_notes.md
41+
echo "**Full Changelog:** https://github.com/${{ github.repository }}/compare/v0.1.0...${VERSION}" >> /tmp/release_notes.md
42+
43+
- name: Create GitHub Release
44+
uses: softprops/action-gh-release@v2
45+
with:
46+
name: "OpenArc ${{ steps.version.outputs.VERSION }}"
47+
body_path: /tmp/release_notes.md
48+
generate_release_notes: true
49+
make_latest: true
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@ This project follows semantic versioning.
66

77
## Unreleased
88

9-
- Added an `openarc` entry skill to route general OpenArc requests into the right focused workflow.
10-
- Added a dependency-free `scripts/openarc.py` helper with `scan` and `doctor` commands.
11-
- Updated README quick start around first-run scanning and maintainer validation.
12-
- Added open-source maintenance guidance.
13-
- Reworked README into a public open-source entrypoint.
14-
- Added MIT license metadata and license file.
15-
- Added contribution guidance for future maintainers.
9+
_(No changes yet.)_
1610

1711
## 0.1.0
1812

1913
- Added initial OpenArc plugin manifest.
2014
- Added focused governance, spec, planning, design, brand, assets, implementation, version, release, and migration skills.
2115
- Added baseline templates and examples.
16+
- Added `openarc` entry skill to route general OpenArc requests into the right focused workflow.
17+
- Added dependency-free `scripts/openarc.py` helper with `scan` and `doctor` commands.
18+
- Updated README quick start around first-run scanning and maintainer validation.
19+
- Added open-source maintenance guidance.
20+
- Reworked README into a public open-source entrypoint.
21+
- Added MIT license metadata and license file.
22+
- Added contribution guidance for future maintainers.
23+
- Added GitHub Actions auto-release workflow.

0 commit comments

Comments
 (0)