Fix release step (#1935)
* Improve readability of Docker copy step * Rename token env variable to WASMD_GITHUB_RELEASES_TOKEN * Remove binary artifact for GitHub releases
This commit is contained in:
@@ -244,26 +244,14 @@ jobs:
|
||||
|
||||
release-tagged:
|
||||
executor: golang
|
||||
environment:
|
||||
BUILD_DIR: /tmp/workspace
|
||||
steps:
|
||||
- attach_workspace:
|
||||
at: /tmp/workspace
|
||||
- checkout
|
||||
- setup_remote_docker:
|
||||
docker_layer_caching: true
|
||||
- run:
|
||||
name: Fetch static artifact
|
||||
command: docker create --name wasmd_temp "cosmwasm/wasmd:${CIRCLE_TAG}"; docker cp wasmd_temp:/usr/bin/wasmd ${BUILD_DIR}; docker rm -f wasmd_temp
|
||||
- run:
|
||||
name: gzip
|
||||
command: tar -zcvf ${BUILD_DIR}/wasmd-${CIRCLE_TAG}-linux-amd64.tar.gz -C ${BUILD_DIR} wasmd
|
||||
- gh/setup:
|
||||
token: GITHUB_CREDS
|
||||
token: WASMD_GITHUB_RELEASES_TOKEN
|
||||
- run:
|
||||
name: Create release
|
||||
command: |
|
||||
gh release create ${CIRCLE_TAG} ${BUILD_DIR}/wasmd-${CIRCLE_TAG}-linux-amd64.tar.gz \
|
||||
gh release create ${CIRCLE_TAG} \
|
||||
--title "$CIRCLE_TAG" \
|
||||
--draft \
|
||||
--notes "# Wasmd ${CIRCLE_TAG} Release
|
||||
@@ -314,8 +302,6 @@ workflows:
|
||||
requires:
|
||||
- setup-dependencies
|
||||
- release-tagged:
|
||||
requires:
|
||||
- docker-tagged
|
||||
filters:
|
||||
tags:
|
||||
only:
|
||||
|
||||
Reference in New Issue
Block a user