1
0
This commit is contained in:
2026-01-27 09:53:41 +01:00
parent 5a52073849
commit 91d262c2d5
6 changed files with 13 additions and 13 deletions

View File

@@ -62,7 +62,7 @@ tasks:
- "Authorization: token $(decrypt(gitToken,keyfile))"
- "-H"
- "Content-Type: application/json"
- "@(git)/api/v1/repos/golang/$(gitRepo)/releases"
- "@(packages)/$(gitRepo)/releases"
- "-d"
- '{"tag_name": "$(version)","name": "$(version)","body": "## Changes\n- Release via API","draft": false,"prerelease": false}'
parsers:

View File

@@ -13,6 +13,7 @@ tasks:
unixPassword: $(unixPassword)
installPath: $(installPath)
keyfile: $(keyfile)
packages: $(packages)
loop:
values: $(app.targets)
as: target

View File

@@ -56,7 +56,7 @@ tasks:
- "Content-Type: application/octet-stream"
- "--data-binary"
- "@$(destDir)/$(name)_$(version)_$(target.buildGoos)-$(target.buildGoarch).tar.gz"
- "@(git)/api/v1/repos/golang/$(name)/releases/$(releaseId)/assets?name=$(name)_$(version)_$(target.buildGoos)-$(target.buildGoarch).tar.gz"
- "@(packages)/$(name)/$(version)/$(name)_$(version)_$(target.buildGoos)-$(target.buildGoarch).tar.gz"
- execute:
description: "Upload Checksum File"
@@ -71,7 +71,7 @@ tasks:
- "Content-Type: application/octet-stream"
- "--data-binary"
- "@$(destDir)/$(name)_$(version)_$(target.buildGoos)-$(target.buildGoarch).sha256"
- "@(git)/api/v1/repos/golang/$(name)/releases/$(releaseId)/assets?name=$(name)_$(version)_$(target.buildGoos)-$(target.buildGoarch).sha256"
- "@(packages)/$(name)/$(version)/$(name)_$(version)_$(target.buildGoos)-$(target.buildGoarch).sha256"
- execute:
description: "Install binary"

View File

@@ -70,6 +70,7 @@ tasks:
gitToken: $(git_token)
unixPassword: $(unix_password)
installPath: $(install_path)
packages: $(packages)
loop:
values: $(apps)
as: app