Changes
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -13,6 +13,7 @@ tasks:
|
||||
unixPassword: $(unixPassword)
|
||||
installPath: $(installPath)
|
||||
keyfile: $(keyfile)
|
||||
packages: $(packages)
|
||||
loop:
|
||||
values: $(app.targets)
|
||||
as: target
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -70,6 +70,7 @@ tasks:
|
||||
gitToken: $(git_token)
|
||||
unixPassword: $(unix_password)
|
||||
installPath: $(install_path)
|
||||
packages: $(packages)
|
||||
loop:
|
||||
values: $(apps)
|
||||
as: app
|
||||
|
||||
Reference in New Issue
Block a user