-
Notifications
You must be signed in to change notification settings - Fork 9k
Expand file tree
/
Copy pathmoon.yml
More file actions
32 lines (28 loc) · 767 Bytes
/
Copy pathmoon.yml
File metadata and controls
32 lines (28 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$schema: 'https://moonrepo.dev/schemas/project.json'
tasks:
upload-logos:
script: |
set -eu
root="$(pwd)"
if [ ! -f "$root/.env.local" ]; then
echo 'Missing .env.local. Copy .env.example to .env.local first.' >&2
exit 1
fi
set -a
. "$root/.env.local"
set +a
: "${R2_BUCKET:?Set R2_BUCKET in .env.local}"
for file in "$root"/brand/marks/*.svg; do
bun run --cwd apps/web wrangler r2 object put \
"$R2_BUCKET/${file##*/}" \
--file "$file" \
--content-type 'image/svg+xml' \
--remote
done
inputs:
- 'brand/marks/*.svg'
- 'apps/web/package.json'
- '.env.example'
options:
cache: false
runInCI: false