mirror of
https://github.com/laurent22/joplin.git
synced 2025-04-01 21:24:45 +02:00
Tools: Publish desktop files only on release tag. Also added debug info.
This commit is contained in:
parent
05e9000087
commit
fa50a8f5da
20
.travis.yml
20
.travis.yml
@ -68,6 +68,12 @@ before_install:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
|
# Prints some env variables
|
||||||
|
echo "TRAVIS_OS_NAME=$TRAVIS_OS_NAME"
|
||||||
|
echo "TRAVIS_BRANCH=$TRAVIS_BRANCH"
|
||||||
|
echo "TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST"
|
||||||
|
echo "TRAVIS_TAG=$TRAVIS_TAG"
|
||||||
|
|
||||||
# Install tools
|
# Install tools
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
@ -116,5 +122,17 @@ script:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Prepare the Electron app and build it
|
# Prepare the Electron app and build it
|
||||||
|
#
|
||||||
|
# If the current tag is a desktop release tag (starts with "v", such as
|
||||||
|
# "v1.4.7"), we build and publish to github
|
||||||
|
#
|
||||||
|
# Otherwise we only build but don't publish to GitHub. It helps finding
|
||||||
|
# out any issue in pull requests and dev branch.
|
||||||
|
|
||||||
cd packages/app-desktop
|
cd packages/app-desktop
|
||||||
USE_HARD_LINKS=false npm run dist
|
|
||||||
|
if [[ $TRAVIS_TAG = v* ]]; then
|
||||||
|
USE_HARD_LINKS=false npm run dist
|
||||||
|
else
|
||||||
|
USE_HARD_LINKS=false npm run dist -- --publish=never
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user