From ee57a1541004d5499e79f1cdcb940fe969e13448 Mon Sep 17 00:00:00 2001 From: roi-codefresh <60569147+roi-codefresh@users.noreply.github.com> Date: Mon, 31 May 2021 15:38:10 +0300 Subject: [PATCH 1/2] Update codefresh.yaml --- codefresh.yaml | 35 +++++++++++------------------------ 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/codefresh.yaml b/codefresh.yaml index 593c51c..6a1e520 100644 --- a/codefresh.yaml +++ b/codefresh.yaml @@ -1,41 +1,28 @@ version: '1.0' stages: +- Prepare - Release mode: parallel steps: - CreatingGitTag: - title: Push tag to git - image: codefresh/cli - stage: Release - commands: - - export VERSION=$(cat VERSION) - - export OLD_ORIGIN=$(git remote get-url origin) - - git remote rm origin - - git remote add origin https://${{GITHUB_TOKEN}}@github.com/codefresh-io/go-sdk.git - - git tag v$VERSION - - git push --tags - - git remote rm origin - - git remote add origin $OLD_ORIGIN - fail_fast: false - when: - steps: - - name: main_clone - branch: - only: - - master + main_clone: + stage: Prepare + title: clone repository + type: git-clone + git: cf_github + repo: ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}} + revision: ${{CF_BRANCH}} ReleasingBinaries: title: Create release in Github - image: goreleaser/goreleaser + image: quay.io/codefresh/golang-ci-helper:latest stage: Release - fail_fast: false commands: - go mod download - - goreleaser release -f .goreleaser.yml --rm-dist --skip-validate + - gh release create --repo ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}} -t $VERSION -n $VERSION $VERSION when: steps: - name: CreatingGitTag @@ -43,4 +30,4 @@ steps: - finished branch: only: - - master \ No newline at end of file + - master From ca1f2a43cce7349227c6c65eb16fc78c86a7e67f Mon Sep 17 00:00:00 2001 From: roi-codefresh <60569147+roi-codefresh@users.noreply.github.com> Date: Mon, 31 May 2021 15:38:43 +0300 Subject: [PATCH 2/2] Delete .goreleaser.yml --- .goreleaser.yml | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 .goreleaser.yml diff --git a/.goreleaser.yml b/.goreleaser.yml deleted file mode 100644 index 94ab732..0000000 --- a/.goreleaser.yml +++ /dev/null @@ -1,27 +0,0 @@ -builds: -- env: - - CGO_ENABLED=0 - goos: - - darwin - - linux - - windows -archive: - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 - format_overrides: - - goos: windows - format: zip -checksum: - name_template: 'checksums.txt' -snapshot: - name_template: "{{ .Tag }}-next" -changelog: - sort: asc - filters: - exclude: - - '^docs:' - - '^test:'