Initial release
This commit is contained in:
1 parent
8ceb3c8be8
commit
f2cefdd429
5 files changed
+80
-22
No files matched your search
@@ -2,7 +2,8 @@ name: Release
|
||||
|
||||
# Push a tag such as v0.1.0 to build a static Linux binary (web UI included)
|
||||
# and publish it as a Gitea release. The tag must match the version in
|
||||
# Cargo.toml's [workspace.package].
|
||||
# Cargo.toml's [workspace.package], and CHANGELOG.md must have a section for
|
||||
# it: that section becomes the release notes.
|
||||
#
|
||||
# Written for Gitea Actions (act_runner). It lives in .github/workflows so the
|
||||
# CI workflow next to it keeps running too: Gitea ignores .github/workflows
|
||||
@@ -36,6 +37,14 @@ jobs:
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with: { node-version: 22, cache: npm, cache-dependency-path: ui/package-lock.json }
|
||||
|
||||
# Before the long build, so a missing entry fails in seconds.
|
||||
- name: Read the release notes from CHANGELOG.md
|
||||
run: |
|
||||
mkdir -p dist
|
||||
node .github/scripts/changelog.mjs "$GITHUB_REF_NAME" > dist/release-notes.md
|
||||
cat dist/release-notes.md
|
||||
|
||||
- name: Build the UI
|
||||
run: |
|
||||
npm --prefix ui ci
|
||||
@@ -74,4 +83,6 @@ jobs:
|
||||
- name: Publish the release
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: node .github/scripts/gitea-release.mjs "$GITHUB_REF_NAME" "$ASSET" "$ASSET.sha256"
|
||||
run: >-
|
||||
node .github/scripts/gitea-release.mjs "$GITHUB_REF_NAME" dist/release-notes.md
|
||||
"$ASSET" "$ASSET.sha256"
|
||||
Reference in new issue
Block a user