Skip to content

feat: production-ready WASI + VDP chain fixes + filter chain tests (v… #5

feat: production-ready WASI + VDP chain fixes + filter chain tests (v…

feat: production-ready WASI + VDP chain fixes + filter chain tests (v… #5

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract version from tag
id: version
run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
- name: Extract changelog section
id: changelog
run: |
# Extract the section for this version from CHANGELOG.md
version="${{ steps.version.outputs.version }}"
notes=$(awk -v ver="$version" '
/^## \[/ {
if (found) exit
if (index($0, "[" ver "]")) found=1
next
}
found { print }
' CHANGELOG.md)
# Use delimiter for multiline output
{
echo "notes<<EOF"
echo "$notes"
echo "EOF"
} >> "$GITHUB_OUTPUT"
- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "$GITHUB_REF_NAME" \
--title "$GITHUB_REF_NAME" \
--notes "${{ steps.changelog.outputs.notes }}"