-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1972 from cosmos/sabau/auto-release-PR-first-step
Auto release: Creating PR overnight
- Loading branch information
Showing
5 changed files
with
15 additions
and
24 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 |
---|---|---|
|
@@ -255,21 +255,8 @@ jobs: | |
git push --delete bot release-candidate | ||
npm -g uninstall yarn ; npm -g install [email protected] | ||
sudo tasks/build/installWine.sh | ||
yarn install | ||
# download network configs | ||
# skip as this will overwrite game of stakes | ||
# tasks/build/testnets/build.sh | ||
# build Voyager | ||
node tasks/build/build.js | ||
# test linux build | ||
tar -zxvf ./builds/Voyager/Cosmos_Voyager-*-Linux.tar.gz | ||
yarn test:exe "./Cosmos Voyager" | ||
node tasks/publish.js | ||
fi | ||
|
@@ -340,9 +327,14 @@ workflows: | |
branches: | ||
only: develop | ||
|
||
# Every UTC midnight we go on develop and release | ||
release: | ||
jobs: | ||
- release: | ||
triggers: | ||
- schedule: | ||
cron: "0 0 * * *" | ||
filters: | ||
branches: | ||
only: release | ||
only: | ||
- develop | ||
jobs: | ||
- release |
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
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 |
---|---|---|
|
@@ -27,7 +27,8 @@ const pushCommit = ({ token, branch }) => | |
set -o verbose | ||
git config --local user.name "Voyager Bot" | ||
git config --local user.email "[email protected]" | ||
git commit --all --message="Bump version for release." | ||
git add CHANGELOG.md package.json | ||
git commit --message="Bump version for release." | ||
git tag --force release-candidate | ||
git remote add bot https://${token}@github.com/cosmos/voyager.git | ||
git push --force --tags bot HEAD:${branch} | ||
|
@@ -47,7 +48,7 @@ const createPullRequest = async ({ changeLog, token, tag, head }) => { | |
repo: `voyager`, | ||
title: `automatic release created for ${tag}`, | ||
head, | ||
base: `develop`, | ||
base: `master`, | ||
body: recentChanges(changeLog), | ||
maintainer_can_modify: true | ||
}) | ||
|
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
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