-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Deploy Stage from travis, because node-dht needs to be built o…
…n a Raspberry
- Loading branch information
1 parent
c3bd9fa
commit 6906fbb
Showing
2 changed files
with
45 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,47 +26,47 @@ jobs: | |
if: type = push AND branch = master | ||
name: "Building Application ..." | ||
script: npm run pack | ||
- stage: deploy | ||
if: type = push AND branch = master | ||
name: "Deploying..." | ||
script: | ||
- | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "UnchartedBull" | ||
git config --global push.default current | ||
touch .git/credentials | ||
echo "https://UnchartedBull:${GITHUB_TOKEN}@github.com" > .git/credentials | ||
git config credential.helper "store --file=.git/credentials" | ||
git checkout -- . | ||
- gem install github_changelog_generator | ||
- | | ||
COMMIT=$(git log -1 --pretty=%B) | ||
VERSION_BUMP="patch" | ||
- | | ||
if [ $COMMIT == *"[version major]"* ]; then VERSION_BUMP="major"; fi; | ||
if [ $COMMIT == *"[version minor]"* ]; then VERSION_BUMP="minor"; fi; | ||
- | | ||
if [ $COMMIT == *"[release]"* ]; then | ||
echo "received commit message - "$COMMIT | ||
echo "bumping version ("$VERSION_BUMP")" | ||
npm version $VERSION_BUMP -m "[skip ci] bump package version to v%s" | ||
github_changelog_generator -t $GITHUB_TOKEN | ||
git add -A CHANGELOG.md | ||
git commit --amend --no-edit | ||
git push origin HEAD:$TRAVIS_BRANCH | ||
npm run pack | ||
mv package/*armv7l.deb OctoDash_$(git describe --tags $(git rev-list --tags --max-count=1))_armv7l.deb | ||
mv package/*arm64.deb OctoDash_$(git describe --tags $(git rev-list --tags --max-count=1))_arm64.deb | ||
export TRAVIS_TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) | ||
fi; | ||
deploy: | ||
provider: releases | ||
api_key: $GITHUB_TOKEN | ||
skip_cleanup: true | ||
draft: true | ||
on: | ||
tags: true | ||
file_glob: true | ||
file: | ||
- "OctoDash_*_armv7l.deb" | ||
- "OctoDash_*_arm64.deb" | ||
# - stage: deploy | ||
# if: type = push AND branch = master | ||
# name: "Deploying..." | ||
# script: | ||
# - | | ||
# git config --global user.email "[email protected]" | ||
# git config --global user.name "UnchartedBull" | ||
# git config --global push.default current | ||
# touch .git/credentials | ||
# echo "https://UnchartedBull:${GITHUB_TOKEN}@github.com" > .git/credentials | ||
# git config credential.helper "store --file=.git/credentials" | ||
# git checkout -- . | ||
# - gem install github_changelog_generator | ||
# - | | ||
# COMMIT=$(git log -1 --pretty=%B) | ||
# VERSION_BUMP="patch" | ||
# - | | ||
# if [ $COMMIT == *"[version major]"* ]; then VERSION_BUMP="major"; fi; | ||
# if [ $COMMIT == *"[version minor]"* ]; then VERSION_BUMP="minor"; fi; | ||
# - | | ||
# if [ $COMMIT == *"[release]"* ]; then | ||
# echo "received commit message - "$COMMIT | ||
# echo "bumping version ("$VERSION_BUMP")" | ||
# npm version $VERSION_BUMP -m "[skip ci] bump package version to v%s" | ||
# github_changelog_generator -t $GITHUB_TOKEN | ||
# git add -A CHANGELOG.md | ||
# git commit --amend --no-edit | ||
# git push origin HEAD:$TRAVIS_BRANCH | ||
# npm run pack | ||
# mv package/*armv7l.deb OctoDash_$(git describe --tags $(git rev-list --tags --max-count=1))_armv7l.deb | ||
# mv package/*arm64.deb OctoDash_$(git describe --tags $(git rev-list --tags --max-count=1))_arm64.deb | ||
# export TRAVIS_TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) | ||
# fi; | ||
# deploy: | ||
# provider: releases | ||
# api_key: $GITHUB_TOKEN | ||
# skip_cleanup: true | ||
# draft: true | ||
# on: | ||
# tags: true | ||
# file_glob: true | ||
# file: | ||
# - "OctoDash_*_armv7l.deb" | ||
# - "OctoDash_*_arm64.deb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters