Skip to content

Commit

Permalink
ci: fix release and changelog gen
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarnadas committed Feb 26, 2020
1 parent c6d4bad commit 972c702
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ jobs:
- export PACKAGE_VERSION=$(grep '"version":' package.json -m1 | cut -d\" -f4)
- export GIT_TAG=$PACKAGE_VERSION-dev.$TRAVIS_BUILD_NUMBER
- yarn changelog
- export RELEASE_BODY="$(cat ${PACKAGE_VERSION}.md)"
- export RELEASE_BODY="$(cat changelog/${PACKAGE_VERSION}.md)"
- cd compile
- tar czf net64plus-server_$(echo $PACKAGE_VERSION)_win32-x64.tar.gz net64plus-server_$(echo $PACKAGE_VERSION)_win32-x64.exe
- tar czf net64plus-server_$(echo $PACKAGE_VERSION)_linux-x64.tar.gz net64plus-server_$(echo $PACKAGE_VERSION)_linux-x64
- yarn changelog
after_success:
- git add changelog
- git commit -m "docs: update changelog"
- git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER"
- git push -q https://github.com/Tarnadas/net64plus-server
- git push -q https://github.com/Tarnadas/net64plus-server --tags
deploy:
provider: releases
Expand Down

0 comments on commit 972c702

Please sign in to comment.