From a356dceedf0be29ae584866e540872ec1c048f59 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 1 Oct 2026 15:21:27 +0900 Subject: internal/workflows: migrate release workflow This also migrates from the unmaintained release action and improves configuration so the new release is created as a draft, and the tag annotation is automatically added as the release body. Signed-off-by: Ophestra --- .gitea/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.gitea/workflows') diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index d4eb0de8..a91e3c67 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -1 +1 @@ -{"name":"Release","on":[{"K":"push","V":[{"K":"tags","V":"v*"}]}],"jobs":{"release":{"name":"Create release","runs-on":"nix","steps":[{"name":"Checkout","uses":"actions/checkout@v4"},{"name":"Build for release","run":"nix build --print-out-paths --print-build-logs ./test#dist"},{"name":"Release","uses":"https://gitea.com/actions/release-action@main","with":{"files":"result/hakurei-**","api_key":"${{secrets.RELEASE_TOKEN}}"}}]}}} +{"name":"Release","on":{"push":{"tags":["v*"]}},"jobs":{"release":{"name":"Create release","runs-on":"rosa","steps":[{"name":"Fix container filesystem","run":"rm /var/run \u0026\u0026 ln -sf ../run /var"},{"name":"Checkout","uses":"actions/checkout@v4","with":{"fetch-depth":0,"fetch-tags":true}},{"name":"Request distribution","id":"dist","run":"/rosa/bin/mbf ci dist -o result . \"$(cat cmd/dist/VERSION)-act\" \u0026\u0026 git tag --list --format='%(contents:body)' \"$(cat cmd/dist/VERSION)\" \u003e\u003e \"/tmp/release-body\""},{"name":"Create release","uses":"https://gitea.com/actions/gitea-release-action@v1.3.7","with":{"files":"result/hakurei-**","body_path":"/tmp/release-body","draft":true}}]}}} -- cgit v1.3.1