Skip to content

Commit 466aebe

Browse files
committed
Run packaging only in production branch
1 parent 4dbf01b commit 466aebe

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ sudo: required
22
dist: trusty
33
#if: tag IS present
44

5+
branches:
6+
only:
7+
- production
8+
59
language: c
610

711
matrix:
@@ -36,4 +40,4 @@ before_script:
3640
- yarn run production
3741

3842
script:
39-
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then yarn run publish; else docker run --rm -it -e "GITHUB_TOKEN=$GITHUB_TOKEN" -v $(pwd):/code kriskbx/gtt-taskbar-builder ./build.sh; fi
43+
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then yarn run publish; else docker run --rm -it -e "GITHUB_TOKEN=$GITHUB_TOKEN" -v $(pwd):/code kriskbx/gtt-taskbar-builder ./build.sh; fi

appveyor.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
os: unstable
22
cache:
33
- node_modules
4+
branches:
5+
only:
6+
- production
47
environment:
58
GITHUB_TOKEN:
69
secure: G/hTb/AdUY4ynt5XGj10fROfQZC2xgogiQAiqXT63cEMGAGcZ8+6rOdQJzf4/PHf
@@ -20,4 +23,4 @@ version: '{build}'
2023
shallow_clone: true
2124
clone_depth: 1
2225
test_script:
23-
- ps: if($env:appveyor_repo_tag -eq 'True') { yarn run publish } else { echo "Not a tag build" }
26+
- ps: yarn run production && yarn run publish

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@
9090
},
9191
"github_repository": {
9292
"owner": "kriskbx",
93-
"name": "gitlab-time-tracker-taskbar"
93+
"name": "gitlab-time-tracker-taskbar",
94+
"draft": false,
95+
"prerelease": true
9496
},
9597
"windowsStoreConfig": {
9698
"packageName": "gtt-taskbar",

0 commit comments

Comments
 (0)