ci: restore original native release lifecycle #13
@@ -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
|
||||
Reference in new issue
Block a user