-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-release.sh
More file actions
executable file
·16 lines (13 loc) · 866 Bytes
/
make-release.sh
File metadata and controls
executable file
·16 lines (13 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
TAG=$TAG
TAG_COMMIT=$(git rev-parse --short ${TAG})
#AUTH_TOKEN=$GITEA_TOKEN
#curl -X POST "https://git-central.openfunction.co/api/v1/repos/jmarhee/polly-textfile-cli/releases" -H "Authorization: token $AUTH_TOKEN" \
# -H "accept: application/json" -H "Content-Type: application/json" \
# -d "{ \"body\": \"Cutting ${TAG} at ${TAG_COMMIT}\", \"draft\": false, \"name\": \"${TAG}\", \"prerelease\": false, \"tag_name\": \"${TAG}\", \"target_commitish\": \"${TAG_COMMIT}\"}" \
# -ik
AUTH_TOKEN=$GITHUB_TOKEN
curl \
-X POST "https://api.github.com/repos/jmarhee/polly-textfile-cli/releases" -H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
-d "{ \"body\": \"Cutting ${TAG} at ${TAG_COMMIT}\", \"draft\": false, \"name\": \"${TAG}\", \"prerelease\": false, \"tag_name\": \"${TAG}\" }" \