Skip to content

Commit

Permalink
Changed deploy method
Browse files Browse the repository at this point in the history
Migrated from "electron-builder" publishing to Travis releases
  • Loading branch information
josemmo committed Oct 15, 2018
1 parent 1ef6848 commit 9a88081
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,28 @@ script:
-v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
electronuserland/builder:wine \
/bin/bash -c "yarn --link-duplicates --pure-lockfile && yarn build:web && ./node_modules/.bin/electron-builder --linux --win -p onTagOrDraft"
/bin/bash -c "yarn --link-duplicates --pure-lockfile && yarn build:web && ./node_modules/.bin/electron-builder --linux --win -p never"
else
npm run build:web && ./node_modules/.bin/electron-builder -p onTagOrDraft
npm run build:web && ./node_modules/.bin/electron-builder -p never
fi
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine

deploy:
provider: pages
skip-cleanup: true
github-token: $GH_TOKEN
local-dir: dist
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
- provider: releases
api_key: $GH_TOKEN
file_glob: true
file: build/*
skip_cleanup: true
on:
tags: true
- provider: pages
skip-cleanup: true
github-token: $GH_TOKEN
local-dir: dist
on:
tags: true
condition: $TRAVIS_OS_NAME = linux

notifications:
email: false

0 comments on commit 9a88081

Please sign in to comment.