mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-25 23:03:38 +01:00
ci: release go binaries for linux/amd64 linux/arm64 linux/arm/v7 (#19)
This commit is contained in:
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@@ -15,6 +15,11 @@ jobs:
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
|
||||
- name: Set up Go 1.17
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ^1.17
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
@@ -23,4 +28,6 @@ jobs:
|
||||
- name: Release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
run: npx semantic-release -b main -p "@semantic-release/commit-analyzer" -p "@semantic-release/release-notes-generator" -p "@semantic-release/github"
|
||||
run: |
|
||||
npm i -G semantic-release @semantic-release/exec
|
||||
npx semantic-release -b main
|
||||
13
Makefile
Normal file
13
Makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
PLATFORMS := linux/amd64 linux/arm64 linux/arm/v7
|
||||
|
||||
temp = $(subst /, ,$@)
|
||||
os = $(word 1, $(temp))
|
||||
arch = $(word 2, $(temp))
|
||||
version = draft
|
||||
|
||||
release: $(PLATFORMS)
|
||||
|
||||
$(PLATFORMS):
|
||||
GOOS=$(os) GOARCH=$(arch) go build -o 'traefik-ondemand-service_$(version)_$(os)-$(arch)' .
|
||||
|
||||
.PHONY: release $(PLATFORMS)
|
||||
15
release.config.js
Normal file
15
release.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
module.exports = {
|
||||
"branches": "main",
|
||||
"plugins": [
|
||||
"@semantic-release/commit-analyzer",
|
||||
"@semantic-release/release-notes-generator",
|
||||
["@semantic-release/exec", {
|
||||
"publishCmd": "make version=${nextRelease.version} release -j 3"
|
||||
}],
|
||||
["@semantic-release/github", {
|
||||
"assets": [
|
||||
"traefik-ondemand-service*"
|
||||
]
|
||||
}]
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user