Skip to content

Commit

Permalink
Merge pull request #168 from p2m2/develop
Browse files Browse the repository at this point in the history
fic ghr
  • Loading branch information
ofilangi authored Apr 14, 2022
2 parents 9334d18 + e11b51b commit 41d92fb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,10 @@ jobs:
command: |
LAST_VERSION=$(git ls-remote --tags --sort="v:refname" https://${GITHUB_TOKEN}@github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}.git | tail -n1 | sed 's/.*\///; s/\^{}//')
VERSION=$(grep -E "static_version_build[[:blank:]]*=[[:blank:]]*" build.sbt | awk 'BEGIN { FS="="} {gsub("\"","",$2) ; gsub(/[ \t]*/, "", $2);print $2}')
# -------------------------------------------------------
# utiliser gh ? => https://github.com/cli/cli/blob/trunk/docs/install_linux.md
# https://cli.github.com/manual/gh_release_create
# -------------------------------------------------------
if [ "LAST_VERSION" != "VERSION" ]; then
go get github.com/tcnksm/ghr
JAR=discovery-$VERSION.jar
Expand All @@ -337,7 +340,7 @@ jobs:
-r ${CIRCLE_PROJECT_REPONAME} \
-c ${CIRCLE_SHA1} \
-n $VERSION \
-delete $VERSION $JAR ./dist/discovery-web.js ./dist/discovery-web-dev.js ./dist/discovery-web-dev.js.map
-delete $VERSION $JAR
fi
# obsolete
check_discovery_valid_fullopjs_cdn_jsdelivr:
Expand Down

0 comments on commit 41d92fb

Please sign in to comment.