diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..e91b6ee --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,45 @@ +name: Release + +# Original tag-only native assets and Homebrew completion, using isolated shared phases. +on: + create: + +permissions: + contents: read + +concurrency: + group: release-${{ github.ref }} + cancel-in-progress: false + +jobs: + build: + if: ${{ github.event_name == 'create' && github.event.ref_type == 'tag' && github.event.ref == github.ref && startsWith(github.ref, 'refs/tags/v') }} + uses: self:KofTwentyTwo/platform-ci/.gitea/workflows/go.yaml@kof-release-v1 + with: + runner: linux-small + packaging: go-cross + artifact: limen + build-targets: linux/amd64:limen-linux-amd64,linux/arm64:limen-linux-arm64,darwin/amd64:limen-macos-amd64,darwin/arm64:limen-macos-arm64 + publish: + needs: [build] + uses: self:KofTwentyTwo/platform-ci/.gitea/workflows/native-release-assets.yaml@kof-release-v1 + permissions: + contents: write + actions: read + with: + artifact-pattern: limen-release-* + asset-names: | + limen-linux-amd64 + limen-linux-arm64 + limen-macos-amd64 + limen-macos-arm64 + checksums.txt + generate-release-notes: true + homebrew: + needs: [publish] + uses: self:KofTwentyTwo/platform-ci/.gitea/workflows/native-homebrew.yaml@kof-release-v1 + permissions: + contents: read + actions: read + with: + artifact: limen-release-linux