ci(release): replace vociferate with local release scripts

This commit is contained in:
Micheal Wilkinson
2026-03-21 23:21:40 +00:00
parent 76460cddee
commit b24ca1214c
4 changed files with 215 additions and 20 deletions

View File

@@ -9,6 +9,7 @@ permissions:
jobs:
prepare:
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release): prepare ') }}
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -23,24 +24,15 @@ jobs:
ln -s CHANGELOG.md changelog.md
fi
- name: Vociferate prepare
uses: https://git.hrafn.xyz/aether/vociferate/prepare@v1.1.0
- name: Prepare release
run: bash ./script/prepare-release.sh
publish:
needs: prepare
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Provide lowercase changelog compatibility
- name: Summary
if: ${{ always() }}
run: |
set -euo pipefail
if [[ -f CHANGELOG.md && ! -e changelog.md ]]; then
ln -s CHANGELOG.md changelog.md
fi
- name: Vociferate publish
uses: https://git.hrafn.xyz/aether/vociferate/publish@v1.1.0
if git rev-parse -q --verify "refs/tags/$(sed -n 's/^const String = "\([^"]*\)"$/v\1/p' internal/homesick/version/version.go)" >/dev/null; then
echo "Prepared and pushed release tag $(sed -n 's/^const String = "\([^"]*\)"$/v\1/p' internal/homesick/version/version.go)." >> "$GITHUB_STEP_SUMMARY"
else
echo "No release prepared in this run." >> "$GITHUB_STEP_SUMMARY"
fi