diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-01 15:21:27 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-01 15:39:23 +0900 |
| commit | a356dceedf0be29ae584866e540872ec1c048f59 (patch) | |
| tree | 45a85d0514fd60d923dd780caf2204f562d33e28 /.gitea/workflows/release.yml | |
| parent | b0fa39b560d2caaaf0708c0828ae191311aee971 (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to '.gitea/workflows/release.yml')
| -rw-r--r-- | .gitea/workflows/release.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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}}]}}} |
