1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-06-21 00:29:41 +02:00
Commit Graph

65 Commits

Author SHA1 Message Date
ab8bb7f2f3 feat: support custom tokens in Homebrew & Scoop (#1650) 2020-07-06 17:12:41 -03:00
998e377627 refactor: align Homebrew repo handling with Scoop (#1649) 2020-07-06 10:48:17 -03:00
69c8a502db chore(deps): bump github.com/golangci/golangci-lint from 1.23.7 to 1.27.0 (#1563)
* chore(deps): bump github.com/golangci/golangci-lint from 1.23.7 to 1.27.0

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-05-26 00:48:10 -03:00
b2b418c6a7 chore(deps): bump code.gitea.io/sdk/gitea from v0.11.3 to v0.12.0 (#1546)
* migrate

* gitea sdk v0.11.3 -> 0.12.0

* CI.restart()
2020-05-22 10:21:43 -03:00
a39329f1b3 chore(deps): bump github.com/xanzy/go-gitlab from 0.29.0 to 0.31.0 (#1459)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-04-21 19:24:28 +00:00
375109acd7 fix: improve code a bit
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-03-31 10:34:06 -03:00
7661587a9e fix: do not wrap err if its nil
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-03-31 10:30:16 -03:00
cca25688d0 refactor: simplify retries (#1407)
* fix: simplify retries

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: simplify retries

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: simplify retries

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* chore: syntax

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-03-31 10:16:37 -03:00
0736162d5e fix: do not retry upload if file already exists (#1390)
* fix: do not retry upload if file already exists

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: logs

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: gitea client

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: godocs

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-03-22 17:03:31 -03:00
02042937ec feat: upgrade to go 1.14 (#1372)
* feat: upgrade to go 1.14

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-03-04 01:24:51 -03:00
5102c8a29a fix: update code.gitea.io/sdk/gitea (#1220)
* fix: invalid pseudo version for github.com/go-macaron/cors

* chore: use go1.13

* chore: update code.gitea.io/sdk/gitea

* go mod tidy
2019-10-28 22:33:01 -03:00
622254a7df test: increase github client test coverage (#1179)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-06 17:56:34 -03:00
50235f2974 chore(deps): bump all (#1174)
* chore(deps): bump

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* chore(deps): bump semver

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* chore(deps): bump cors

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-06 12:39:53 -03:00
eb40d8682b feat: gitea release support (#1114)
* adds gitea release support
* closes #1106
2019-08-26 09:31:38 +02:00
e92bbe32ce feat: full gitlab support for brew and scoop (#1084)
* makes context tokentype a public var

* passes artifacts object into client upload function. extracts gitlab upload hash from url

* adds gitlab url to brew config

* build brew formula depending on token type

* fixes client for release tests

* fixes exiting brew tests

* fixes scoop test with dummy client adaption

* uses new artifact upload hash

* fixes brew usage

* updates gitlab createFile for brew

* fixes logging for non-existing file in gitlab logging

* fix: gitlab createFile

* fix: removes encoding from gitlab create and update file opts

* fix: gitlab upload and artifact set upload hash

* fix: linter

* changed artifact item to a pointer in ctx

* docs: updates homebrew

* feat: enables scoop for gitlab release

* fix: scoop panic for pointer access

* chore: rename formula build func for brew

* chore: brew removes comments

* fix: brew tests

* test: updates brew tests

* docs: updates homebrew

* test: for token type not implemented for brew

* tests: for multiple linux builds

* fix: build artifacts are pointer in scoop

* test: for scoop and gitlab

* test: for artifacts set upload hash

* adds missing files after adaption

* chore: removes and clarifies comments

* fix: moves artifact upload hash to extra map

* adds comment why we initialize the extra map
2019-08-13 15:28:03 -03:00
9c675218ad &base always not nil (#1105) 2019-08-10 10:35:20 -03:00
7871c58ac2 fix: if resp is nil avoid checking resp.StatusCode in Gitlab client (#1092) (#1093) 2019-08-01 08:26:53 -03:00
38e536e470 Fixed token required if release is disabled #1073 (#1074) 2019-07-08 13:38:02 -03:00
eb7ba2a294 feat: add gitlab for releases (#1038)
* outlines gitlab client integration

* makes client parameter more explicit

* adds gitlab url to config

* changes releaseID to string to adapt to gitlab

* updates to latest gitlab client lib 0.18

* fixes copy paster in gitlab upload func

* fixes gitlab typo in config

* adds gitlab token to env and context

* release now uses the client factory method

* skips brew pipe if it is not a github release

* add github tokentype to publish tests

* skips scoop pipe if it is not a github release

* corrects brew skip msg

* adds gitlab token to main test

* adds gitlab to release docs

* validates config and errors accordingly

* adapt release pipe name to include gitlab

* fixes gitlab client after testing

* moves not-configured brew and scoop pipe checks as first check

* adds more debug to gitlab client

* adapts changelog generation for gitlab markdown

* adds debug log for gitlab changelog

* env needs to run before changelog pipe

* moves gitlab default download url to default pipe

* moves multiple releases check to from config to release pipe

* release differs now for github and gitlab

* adds debug gitlab release update msgs

* moves env pipe as second after before because it determines the token type other pipes depend on

* adaptes error check on gitlab release creation

* Revert "adaptes error check on gitlab release creation"

This reverts commit 032024571c.

* simplifies gitlab client logic. removes comments

* skips tls verification for gitlab client if specified in config

* updates the docs

* adds clarification that brew and scoop are not supported if it is a gitlab release

* fixes copy paster in release.md

* adds missing blob pipe in defaults and publish due to missing in merge

* updates comment in gitlab client
2019-06-29 11:02:40 -03:00
ef6e13a61b fix: brew tmpl (#1057)
* fix: brew tmpl

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: compile

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: compile

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-06-26 14:12:33 -03:00
73a08d5d49 feat: update go-github (#1012) 2019-04-22 09:44:08 -03:00
d24c342ca0 fix: lint issue 2019-04-09 08:54:16 -03:00
dfd1e6a662 chore: combile similar type params (#993) 2019-03-31 14:11:35 -03:00
4a8d526f47 fix: do not override release notes 2019-01-19 18:47:59 -02:00
f07bc40251 fix: lint 2019-01-19 18:26:01 -02:00
55169a8c60 fix: nil transport 2019-01-19 18:26:01 -02:00
6a87444e5f fix: nil transport 2019-01-19 18:26:01 -02:00
d95b7f9adc fix: cast 2019-01-19 18:26:01 -02:00
0ef202cb74 chore: unrequired if 2019-01-19 18:26:01 -02:00
e13a3319bb feat: support skip tls on github cli 2019-01-19 18:26:01 -02:00
6fb427e5c8 Revert "fix: retry upload (#900)"
This reverts commit 6e09a19a83.
2018-12-28 18:58:11 -02:00
6e09a19a83 fix: retry upload (#900)
* fix: retry upload

* fix: goimports
2018-12-23 11:41:36 -02:00
71abba61c3 feat: set github as pre-release if tag has a pre-release indicator (#871)
* Add check if tag contains indicator for pre release

* update release.md docs
2018-11-29 16:42:14 -02:00
64b1f14a86 refactor: better code organization (#757)
* refactor: merging archive in the same repo

* refactor: merging archive in the same repo

* refactor: better organizing packages

* refactor: fixing renames

* fix: new dep version

* fix: makefile

* fix: zip/tar tests

* fix: gitigonore

* fix: s3 tests

* fix: archive test
2018-08-14 23:50:20 -03:00
fc80e6b799 refactor: global single name templating package 2018-07-08 20:47:30 -07:00
4fa9080885 chore: fix lint issues
refs #688
2018-06-19 15:53:14 -03:00
8690ee07e5 fix: lint issues 2018-05-13 17:02:29 -03:00
1c426847d9 feat: upload to s3 2018-05-13 17:02:29 -03:00
438e6e210a Revert "feat: Create new tags for GitHub release (#643)"
This reverts commit 65ff5b771b.
2018-04-26 12:27:24 -07:00
65ff5b771b feat: Create new tags for GitHub release (#643)
I added the target_commitish to the release payload
so the tag will be created if it does not already exist.
This value will not be used if the tag already exists.
2018-04-18 21:15:51 -03:00
5a0b6c4608 fix: added time func to ldflags template 2018-04-15 20:32:52 -03:00
7b45c9abbc style: simplified time template func 2018-04-03 20:55:29 -03:00
b2dd235614 style: simplified template code 2018-04-01 15:57:25 -03:00
c0379ed858 feat: Provide time template func
This commit adds a customizable time function to the release name
template.
2018-04-01 15:19:32 -03:00
8877c72abc chore: better commit msgs for brew and scoop pipes (#605)
* style: moving commit msg to the pipe instead of the client

refs #604

* fix: better commit msg for scoop and brew
2018-03-10 14:13:00 -03:00
66338de1bb style: removed elses, improved test code 2018-02-16 15:03:37 -02:00
0a37305745 fix: Silent failure caused by branching logic
Changed the branching after the `GetContents` call to *first* check for
a non-404 error (internal failure of some sort) and then proceed to
check the status to determine whether to `CreateFile` or `UpdateFile`.
2018-02-11 12:09:46 -02:00
f8a7ac602e update: Added some missing changes
I forgot these!
2018-02-09 14:20:39 -02:00
d7107803a3 refactor: Changed Client.CreateFile to be more generic
The GitHub implementation of CreateFile implicitly uses HomeBrew data.
Added parameters for CommitAuthor and Repo so the call site can specify
these parameters based on the context.
2018-02-09 14:20:39 -02:00
a309eae83b fix: updated deps
closes #527
2018-01-26 09:37:10 -02:00