Prepare the 0.3.0 release

This commit is contained in:
waozi committed 2026-11-12 01:26:11 -03:00
1 parent 3900c56a3d
commit 597cf5038f
4 files changed
+90 -1

No files matched your search

+80
View File
@@ -0,0 +1,80 @@
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: write
concurrency:
group: kryon-release
cancel-in-progress: false
jobs:
tag:
name: Tag new version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create the release for a new VERSION
env:
GH_TOKEN: ${{ github.token }}
run: |
set -eu
VERSION=$(cat VERSION)
TAG="v$VERSION"
if git rev-parse "$TAG" >/dev/null 2>&1; then
echo "$TAG already exists, nothing to release"
exit 0
fi
NOTES=$(awk -v v="$VERSION" '$0 ~ "^## \\[" v "\\]" {found=1; next} found && /^## / {exit} found' CHANGELOG.md)
test -n "$NOTES"
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git tag -a "$TAG" -m "Kryon $VERSION"
git push origin "$TAG"
gh release create "$TAG" --title "Kryon $VERSION" --notes "$NOTES"
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: write
concurrency:
group: kryon-release
cancel-in-progress: false
jobs:
tag:
name: Tag new version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create the release for a new VERSION
env:
GH_TOKEN: ${{ github.token }}
run: |
set -eu
VERSION=$(cat VERSION)
TAG="v$VERSION"
if git rev-parse "$TAG" >/dev/null 2>&1; then
echo "$TAG already exists, nothing to release"
exit 0
fi
NOTES=$(awk -v v="$VERSION" '$0 ~ "^## \\[" v "\\]" {found=1; next} found && /^## \[/ {exit} found' CHANGELOG.md)
test -n "$NOTES"
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git tag -a "$TAG" -m "Kryon $VERSION"
git push origin "$TAG"
gh release create "$TAG" --title "Kryon $VERSION" --notes "$NOTES"
+3 -1
View File
@@ -1,6 +1,8 @@
# Changelog
## [Unreleased]
## Unreleased
## [0.3.0] - 2026-11-12
- Hosted bundles can measure approved images through typed width and height calls without gaining arbitrary file or raster access.
+1
View File
@@ -0,0 +1 @@
0.3.0
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")"
version=$(sed -n 's/^## \[\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)\].*/\1/p' CHANGELOG.md | head -n 1)
test -n "$version"
printf '%s\n' "$version" > VERSION