1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00

Merge pull request #1189 from Zokrates/fix-release

Add github release api call to the `release.sh` script
This commit is contained in:
Darko Macesic 2022-08-03 09:36:40 +02:00 committed by GitHub
commit 938adacc8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View file

@ -164,11 +164,6 @@ jobs:
name: "Publish artifacts on GitHub"
command: |
go install github.com/github-release/github-release@latest
github-release release \
-s ${GH_TOKEN} \
-u ${CIRCLE_PROJECT_USERNAME} \
-r ${CIRCLE_PROJECT_REPONAME} \
-t ${CIRCLE_TAG} || true
find /tmp/artifacts -type f -name *.tar.gz -exec basename {} \; | xargs -I {} github-release upload \
-s ${GH_TOKEN} \
-u ${CIRCLE_PROJECT_USERNAME} \

View file

@ -33,6 +33,14 @@ git tag -f $TAG
git push origin -f latest
git push origin $TAG
# Create a release draft
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token $GH_TOKEN" \
https://api.github.com/repos/Zokrates/ZoKrates/releases \
-d "{\"tag_name\":\"$TAG\",\"draft\":true}"
# Build zokrates js
docker build -t zokrates_js -f zokrates_js/Dockerfile .