1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-06 03:13:48 +02:00
Commit Graph

76 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
27c7c8d7c8 refactor(test): t.TempDir
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-13 10:33:08 -03:00
6543
89105d63ac
feat: upload brew tap to gitea (#1547)
* implement for brew and scoop support for Gitea-hosted repos

* fix test

* add ReleaseURLTemplate support for gitea

* Add TestGiteaReleaseURLTemplate

* fix api to download url conversion

* switch test gitea instance to gitea.com

* fix defaults

* add test for defaults.go (GiteaURLs)

* add option into docs
2020-11-21 10:36:29 -03:00
dependabot[bot]
27aa6871cb
chore(deps): bump github.com/golangci/golangci-lint from 1.31.0 to 1.32.2 (#1882)
* chore(deps): bump github.com/golangci/golangci-lint

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.31.0 to 1.32.2.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.31.0...v1.32.2)

Signed-off-by: dependabot[bot] <support@github.com>

* fix: lint issues

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

* refactor: lint issues

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-10 11:15:03 -03:00
Carlos Alexandro Becker
f1049b94ef
feat: use proxy from environment (#1885)
* feat: use proxy from environment

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

* Update internal/client/github.go

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-11-05 08:16:25 +00:00
Carlos Alexandro Becker
979f8632b7
refactor: use require on all tests (#1839)
* refactor: use require on all tests

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

* refactor: use require on all tests

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

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-10-06 12:48:04 +00:00
6543
1bb832a764
chore(deps): bump code.gitea.io/sdk/gitea from v0.12.1 to v0.13.1 (#1828)
* chore(deps): bump code.gitea.io/sdk/gitea from v0.12.1 to v0.13.1

* only set Context if not nil
2020-10-02 02:06:21 +00:00
Carlos Alexandro Becker
c28dab5b1d Revert "chore(deps): bump code.gitea.io/sdk/gitea from v0.12.1 to v0.13.0 (#1806)"
This reverts commit 96dd7c1990.
2020-09-21 14:23:33 -03:00
6543
96dd7c1990
chore(deps): bump code.gitea.io/sdk/gitea from v0.12.1 to v0.13.0 (#1806)
* gitea sdk v0.12.1 -> 0.13.0

* migrate

* adapt

* add version responce

* check err
2020-09-21 10:14:16 -03:00
Carlos Alexandro Becker
35057eac33 chore: move log to debug
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-08-04 00:01:07 -03:00
Brian Flad
01fd3e8c7b
feat: support closing milestones (#1657)
* feat: support closing milestones

Reference: https://github.com/goreleaser/goreleaser/issues/1415

* refactor: Adjust milestone handling for code simplification, add ErrNoMilestoneFound, and fix milestone documentation close default

Reference: https://github.com/goreleaser/goreleaser/pull/1657#pullrequestreview-445025743

* refactor: Use single repo config in milestones instead of each VCS

* fix: Ensure milestone Pipe is included in Defaulters

* feat: Add fail_on_error configuration to milestone configuration

Co-authored-by: Radek Simko <radek.simko@gmail.com>
2020-07-09 21:40:37 +01:00
6543
342f842880
chore(deps): bump code.gitea.io/sdk/gitea from v0.12.0 to v0.12.1 (#1658) 2020-07-09 13:16:46 -03:00
Radek Simko
ab8bb7f2f3
feat: support custom tokens in Homebrew & Scoop (#1650) 2020-07-06 17:12:41 -03:00
Radek Simko
998e377627
refactor: align Homebrew repo handling with Scoop (#1649) 2020-07-06 10:48:17 -03:00
Carlos Alexandro Becker
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
6543
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
Carlos Alexandro Becker
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
Carlos Alexandro Becker
375109acd7
fix: improve code a bit
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-03-31 10:34:06 -03:00
Carlos Alexandro Becker
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
Carlos Alexandro Becker
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
Carlos Alexandro Becker
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
Carlos Alexandro Becker
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
Ludovic Fernandez
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
Carlos Alexandro Becker
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
Carlos Alexandro Becker
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
dtluna
eb40d8682b feat: gitea release support (#1114)
* adds gitea release support
* closes #1106
2019-08-26 09:31:38 +02:00
Manuel Vogel
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
exfly@gper
9c675218ad &base always not nil (#1105) 2019-08-10 10:35:20 -03:00
Dinko Korunic
7871c58ac2 fix: if resp is nil avoid checking resp.StatusCode in Gitlab client (#1092) (#1093) 2019-08-01 08:26:53 -03:00
Florian Heidenreich
38e536e470 Fixed token required if release is disabled #1073 (#1074) 2019-07-08 13:38:02 -03:00
Manuel Vogel
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
Carlos Alexandro Becker
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
Grachev Mikhail
73a08d5d49 feat: update go-github (#1012) 2019-04-22 09:44:08 -03:00
Carlos Alexandro Becker
d24c342ca0
fix: lint issue 2019-04-09 08:54:16 -03:00
Grachev Mikhail
dfd1e6a662 chore: combile similar type params (#993) 2019-03-31 14:11:35 -03:00
Carlos Alexandro Becker
4a8d526f47 fix: do not override release notes 2019-01-19 18:47:59 -02:00
Carlos Alexandro Becker
f07bc40251 fix: lint 2019-01-19 18:26:01 -02:00
Carlos Alexandro Becker
55169a8c60 fix: nil transport 2019-01-19 18:26:01 -02:00
Carlos Alexandro Becker
6a87444e5f fix: nil transport 2019-01-19 18:26:01 -02:00
Carlos Alexandro Becker
d95b7f9adc fix: cast 2019-01-19 18:26:01 -02:00
Carlos Alexandro Becker
0ef202cb74 chore: unrequired if 2019-01-19 18:26:01 -02:00
Carlos Alexandro Becker
e13a3319bb feat: support skip tls on github cli 2019-01-19 18:26:01 -02:00
Carlos Alexandro Becker
6fb427e5c8
Revert "fix: retry upload (#900)"
This reverts commit 6e09a19a83.
2018-12-28 18:58:11 -02:00
Carlos Alexandro Becker
6e09a19a83
fix: retry upload (#900)
* fix: retry upload

* fix: goimports
2018-12-23 11:41:36 -02:00
Felix Gläske
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
Carlos Alexandro Becker
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
Carlos Alexandro Becker
fc80e6b799
refactor: global single name templating package 2018-07-08 20:47:30 -07:00
Carlos Alexandro Becker
4fa9080885
chore: fix lint issues
refs #688
2018-06-19 15:53:14 -03:00
Carlos Alexandro Becker
8690ee07e5 fix: lint issues 2018-05-13 17:02:29 -03:00
Carlos Alexandro Becker
1c426847d9 feat: upload to s3 2018-05-13 17:02:29 -03:00
Carlos Alexandro Becker
438e6e210a
Revert "feat: Create new tags for GitHub release (#643)"
This reverts commit 65ff5b771b.
2018-04-26 12:27:24 -07:00