Skip to content

Commit

Permalink
Merge pull request #194 from dahlia/0.2-maintenance
Browse files Browse the repository at this point in the history
Fix a release script bug (#179) and release 0.2.2
  • Loading branch information
dahlia authored Apr 12, 2019
2 parents 952149e + 725444d commit abe76a3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ script:
cat /tmp/nupkgfiles
grep -i Libplanet.dll /tmp/nupkgfiles
grep -i Libplanet.Stun.dll /tmp/nupkgfiles
rm -f "Libplanet/bin/Release/Libplanet.$version.nupkg"
if [[ "$nupkg_version" != "$version" ]]; then
rm -f "Libplanet/bin/Release/Libplanet.$version.nupkg"
fi
# Turn off "set -e" option
- set +e
Expand All @@ -217,6 +219,7 @@ deploy:
- provider: releases
on:
tags: true
condition: '"$TRAVIS_OS_NAME" = "linux"'
skip_cleanup: true
api_key: "$GITHUB_TOKEN"
file_glob: yes
Expand Down
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Libplanet changelog
Version 0.2.2
-------------

To be released.
Released on April 12, 2019.

- Fixed a bug that `BlockChain<T>.GetStates()` had returned slower than
necessary for many addresses. [[#189], [#192]]
Expand Down
12 changes: 10 additions & 2 deletions Docs/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,27 @@ b64d() {
fi
}

if [[ "$TRAVIS_JOB_NUMBER" != *.1 ]]; then
echo "This script is executed by only the first job so that" \
"it is run only once." > /dev/stderr
exit 0
fi

if [[ "$TRAVIS_SECURE_ENV_VARS" = "false" ]]; then
echo "The secure envrionment variables are disallowed or not configured." \
> /dev/stderr
exit 1
exit 0
fi

if [[ "$GITHUB_SSH_KEY" = "" ]]; then
{
echo "The environment variable GITHUB_SSH_KEY is not configured."
echo "Configure the secure variable from Travis CI repository settings."
echo "https://docs.travis-ci.com/user/environment-variables/#defining-variables-in-repository-settings"
echo "GITHUB_SSH_KEY has to contain a base64-encoded private key without" \
"new lines."
} > /dev/stderr
exit 1
exit 0
fi

echo "$GITHUB_SSH_KEY" | b64d > /tmp/github_id
Expand Down
2 changes: 1 addition & 1 deletion Libplanet/Libplanet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<PackageId>Libplanet</PackageId>
<Title>Libplanet</Title>
<Version>0.2.2-dev</Version>
<Version>0.2.2</Version>
<Summary>A .NET library for creating multiplayer online game in decentralized fashion.</Summary>
<Description>A .NET library for creating multiplayer online game in decentralized fashion.
See also the docs for details:
Expand Down

0 comments on commit abe76a3

Please sign in to comment.