File tree 1 file changed +14
-4
lines changed
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /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
4
8
curl \
5
9
-X POST \
6
10
-H " Accept: application/vnd.github+json" \
7
- -H " Authorization: Bearer $1 " \
11
+ -H " Authorization: Bearer ${GITHUB_TOKEN} " \
8
12
-H " X-GitHub-Api-Version: 2022-11-28" \
9
13
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
You can’t perform that action at this time.
0 commit comments