File tree Expand file tree Collapse file tree 2 files changed +11
-51
lines changed Expand file tree Collapse file tree 2 files changed +11
-51
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11version : ' 1.0'
22
33stages :
4+ - Prepare
45- Release
56
67mode : parallel
78
89steps :
910
10- CreatingGitTag :
11- title : Push tag to git
12- image : codefresh/cli
13- stage : Release
14- commands :
15- - export VERSION=$(cat VERSION)
16- - export OLD_ORIGIN=$(git remote get-url origin)
17- - git remote rm origin
18- - git remote add origin https://${{GITHUB_TOKEN}}@github.com/codefresh-io/go-sdk.git
19- - git tag v$VERSION
20- - git push --tags
21- - git remote rm origin
22- - git remote add origin $OLD_ORIGIN
23- fail_fast : false
24- when :
25- steps :
26- - name : main_clone
27- branch :
28- only :
29- - master
11+ main_clone :
12+ stage : Prepare
13+ title : clone repository
14+ type : git-clone
15+ git : cf_github
16+ repo : ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}
17+ revision : ${{CF_BRANCH}}
3018
3119 ReleasingBinaries :
3220 title : Create release in Github
33- image : goreleaser/goreleaser
21+ image : quay.io/codefresh/golang-ci-helper:latest
3422 stage : Release
35- fail_fast : false
3623 commands :
3724 - go mod download
38- - goreleaser release -f .goreleaser.yml --rm-dist --skip-validate
25+ - gh release create --repo ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}} -t $VERSION -n $VERSION $VERSION
3926 when :
4027 steps :
4128 - name : CreatingGitTag
4229 on :
4330 - finished
4431 branch :
4532 only :
46- - master
33+ - master
You can’t perform that action at this time.
0 commit comments