* fix checking for a tag

* fix ico path

* no need to remove asar.unpack

* fix copy from various sources to same dir
This commit is contained in:
Guillermo Vayá
2021-04-20 12:20:37 +02:00
committed by GitHub
parent 992324f42f
commit b8e2822457
3 changed files with 5 additions and 9 deletions

View File

@@ -287,14 +287,14 @@ jobs:
- run:
name: "Don't upload if it's not on a tag"
command: |
if [ -z `git tag -l --points-at master` ]; then
if [ -z `git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null` ]; then
circleci-agent step halt
fi
- run:
name: "Setup files for aws-s3"
command: |
mkdir -p ./aws-s3-dist
cp ./dist/{macos-release,win-release,linux}/* ./aws-s3-dist
cp --backup=numbered ./dist/{macos-release,win-release,linux}/* ./aws-s3-dist
- aws-s3/copy:
from: ./aws-s3-dist/
to: s3://releases.mattermost.com/desktop/$(jq -r .version package.json)/
@@ -324,14 +324,14 @@ jobs:
- run:
name: "Don't upload if it's not on a tag"
command: |
if [ -z `git tag -l --points-at master` ]; then
if [ -z `git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null` ]; then
circleci-agent step halt
fi
- run:
name: "Setup files for ghr"
command: |
mkdir -p ./ghr-dist
cp ./dist/{macos-release,win-release,linux}/* ./ghr-dist
cp --backup=numbered ./dist/{macos-release,win-release,linux}/* ./ghr-dist
- run:
name: "Publish Release on GitHub"
command: |