Skip to content

Commit

Permalink
Fix upload again and remove GitLab config (#16)
Browse files Browse the repository at this point in the history
* Fix upload release

* Remove gitlab config

* Fix token

* Reinstate back condition for upload

* Use CF_RELEASE_TAG instead for ghr
  • Loading branch information
guangie88 authored Mar 11, 2019
1 parent ea7b93a commit dd9f6bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 113 deletions.
110 changes: 0 additions & 110 deletions .gitlab-ci.yml

This file was deleted.

6 changes: 3 additions & 3 deletions codefresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ steps:
working_directory: ${{main_clone}}/target/x86_64-unknown-linux-musl/release-compressed
commands:
- |-
ghr -u ${{CF_REPO_OWNER}} -r ${{CF_REPO_NAME}} \
-c ${{CF_REVISION}} -replace ${{CF_BRANCH}} smv_linux_amd64
ghr -t ${{GITHUB_TOKEN}} -u ${{CF_REPO_OWNER}} -r ${{CF_REPO_NAME}} \
-c ${{CF_REVISION}} -replace ${{CF_RELEASE_TAG}} smv_linux_amd64
when:
condition:
all:
is_master_branch: '"${{CF_BRANCH}}" == "master"'
is_release_tag: 'match("${{CF_RELEASE_TAG}}", "/^v\d+\.\d+\.\d+(-\S*)?$/", true)'
is_release_tag: 'match("${{CF_RELEASE_TAG}}", "/^v\\d+\\.\\d+\\.\\d+$/", true)'
steps:
- name: compress_release
on:
Expand Down

0 comments on commit dd9f6bb

Please sign in to comment.