Skip to content

Commit 075d185

Browse files
committed
manual_wheel_publish.sh: add circleci aarch64 builds
1 parent 2b07290 commit 075d185

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

manual_wheel_publish.sh

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
#!/bin/sh
2-
# call with your GitHub personal access token, with at least "repo" permissions
3-
# and the target version tag
2+
3+
# Usage:
4+
# ./manual_wheel_publish.sh target_version_tag
5+
6+
# set GITHUB_TOKEN to your personal access token, with at least "repo" permissions
7+
# and CIRCLE_TOKEN with your CircleCI token: https://app.circleci.com/settings/user/tokens
48
curl \
59
-X POST \
610
-H "Accept: application/vnd.github+json" \
7-
-H "Authorization: Bearer $1"\
11+
-H "Authorization: Bearer ${GITHUB_TOKEN}"\
812
-H "X-GitHub-Api-Version: 2022-11-28" \
913
https://api.github.com/repos/common-workflow-language/schema_salad/dispatches \
10-
-d "{\"event_type\":\"on-demand-wheel\",\"client_payload\":{\"ref\":\"$2\", \"publish_wheel\": true}}"
14+
-d "{\"event_type\":\"on-demand-wheel\",\"client_payload\":{\"ref\":\"$1\", \"publish_wheel\": true}}"
15+
16+
curl -X POST --header "Content-Type: application/json" --header "Circle-Token: $CIRCLE_TOKEN" -d "{
17+
\"parameters\": {
18+
\"REF\": \"$1\"
19+
}
20+
}" https://circleci.com/api/v2/project/github/common-workflow-language/schema_salad/pipeline

0 commit comments

Comments
 (0)