File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # This script copies Quarto release binaries into the RStudio Build Tools
4+ # (rstudio-buildtools) S3 bucket. Presumes you've already got AWS command line
5+ # tools (awscli) installed, and configured with a valid AWS account.
6+
7+ # Modify to set the Quarto version to upload
8+ QUARTO_VERSION=0.2.444
9+
10+ BASEURL=" https://github.com/quarto-dev/quarto-cli/releases/download/"
11+ AWS_BUCKET=" s3://rstudio-buildtools"
12+
13+ PLATFORMS=(
14+ linux-amd64.tar.gz
15+ macos.tar.gz
16+ win.zip
17+ )
18+
19+ for PLATFORM in " ${PLATFORMS[@]} " ; do
20+
21+ # Form filename from version and platform
22+ FILENAME=" quarto-${QUARTO_VERSION} -${PLATFORM} "
23+
24+ # Download from Pandoc release site
25+ wget " ${BASEURL} /v${QUARTO_VERSION} /${FILENAME} "
26+
27+ # Upload to S3 bucket
28+ aws s3 cp " ${FILENAME} " " ${AWS_BUCKET} /quarto/${QUARTO_VERSION} /" --acl public-read
29+
30+ # Clean up
31+ rm -f " ${FILENAME} "
32+
33+ done
34+
You can’t perform that action at this time.
0 commit comments