Skip to content

Commit f117ec0

Browse files
committed
Use @victorlin's recommended command to upload/download
Replaces nextstrain remote commands that only I can use with a more general command that any group editor/owner can use.
1 parent 81012b9 commit f117ec0

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

profiles/nextflu-private/README.md

+18-4
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,32 @@ nextstrain remote upload \
8383
## Update the group overview
8484

8585
[The nextflu-private group's overview](https://nextstrain.org/groups/nextflu-private/) lists recent reports and trees by date with the most recent at the top of the page.
86+
Setup your Nextstrain Group token in your current environment; this will grant you permission to access the group overview file through the REST API with curl.
87+
88+
89+
``` bash
90+
nextstrain login
91+
id_token_line=$(grep id_token ~/.nextstrain/secrets)
92+
token=${id_token_line#"id_token = "}
93+
```
94+
8695
Download the group overview markdown file.
8796

8897
``` bash
89-
nextstrain remote download s3://nextstrain-groups/nextflu-private/group-overview.md
98+
curl https://nextstrain.org/groups/nextflu-private/settings/overview \
99+
--header "Authorization: Bearer $token" \
100+
--header 'Content-Type: text/markdown' \
101+
-o group-overview.md
90102
```
91103

92104
Edit this file to include links to the latest report and builds by date.
93105
Upload the updated overview to the group.
94106

95107
``` bash
96-
nextstrain remote upload s3://nextstrain-groups/nextflu-private/ group-overview.md
108+
curl https://nextstrain.org/groups/nextflu-private/settings/overview \
109+
--header "Authorization: Bearer $token" \
110+
--header 'Content-Type: text/markdown' \
111+
--upload-file group-overview.md
97112
```
98113

99-
Note that this upload will not work if you do not have admin permissions on AWS.
100-
In the future, this upload command will use the group customization endpoints through nextstrain.org.
114+
In the future, we will replace these curl commands with `nextstrain remote` commands that use the group customization endpoints through nextstrain.org.

0 commit comments

Comments
 (0)