Update build_develop.yml
This commit is contained in:
parent
ee4679f0f7
commit
8997b84f24
1 changed files with 3 additions and 4 deletions
7
.github/workflows/build_develop.yml
vendored
7
.github/workflows/build_develop.yml
vendored
|
@ -74,10 +74,9 @@ jobs:
|
|||
run: |
|
||||
{
|
||||
echo "/develop.tar.gz $R2_PUBLIC_URL/develop.tar.gz 301"
|
||||
RESULTS=$(aws s3api --region auto --endpoint-url $R2_URL list-objects-v2 --bucket $R2_BUCKET \
|
||||
--query "sort_by(Contents[?ends_with(Key, '/bundle.css')], &LastModified)[-100:].Key"
|
||||
--prefix "bundles/" | jq -r '.[]' | grep -oE '[^\"].*\/\s*')
|
||||
for bundle in "$RESULTS"; do
|
||||
aws s3api --region auto --endpoint-url $R2_URL list-objects-v2 --bucket $R2_BUCKET \
|
||||
--query "sort_by(Contents[?ends_with(Key, '/bundle.css')], &LastModified)[-100:].Key" \
|
||||
--prefix "bundles/" | jq -r '.[]' | grep -oE '[^\"].*\/\s*' | while read -r path ; do
|
||||
echo "/${path}* $R2_PUBLIC_URL/${path}:splat 301"
|
||||
done
|
||||
} | tee _deploy/_redirects
|
||||
|
|
Loading…
Reference in a new issue