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 1
1
version : ' 1.0'
2
2
3
3
stages :
4
+ - Prepare
4
5
- Release
5
6
6
7
mode : parallel
7
8
8
9
steps :
9
10
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}}
30
18
31
19
ReleasingBinaries :
32
20
title : Create release in Github
33
- image : goreleaser/goreleaser
21
+ image : quay.io/codefresh/golang-ci-helper:latest
34
22
stage : Release
35
- fail_fast : false
36
23
commands :
37
24
- 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
39
26
when :
40
27
steps :
41
28
- name : CreatingGitTag
42
29
on :
43
30
- finished
44
31
branch :
45
32
only :
46
- - master
33
+ - master
You can’t perform that action at this time.
0 commit comments