Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8388c86

Browse files
committed
Add script to archive quarto binary
Archives a version of Quarto to S3 for inclusion in the RStudio build process.
1 parent 5a1aee8 commit 8388c86

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+

0 commit comments

Comments
 (0)