Reduce verbosity of curl in action runner
All checks were successful
Generate Website / Generate Website (push) Successful in 17s

This commit is contained in:
Xavier Moffett 2024-12-20 20:39:10 -05:00
parent b6fa5bbf2c
commit 021c77f8a1
Signed by: Sapphirus
GPG key ID: A6C061B2CEA1A7AC

View file

@ -50,10 +50,15 @@ jobs:
- name: Fetch suo binary - name: Fetch suo binary
shell: bash shell: bash
run: | run: |
POST_URL=https://git.sapphirus.org/api/packages/private/generic/suo/latest/suo POST_URL="https://git.sapphirus.org/api/packages/private/generic/suo/latest/suo"
echo "::group:: Fetching suo" echo "::group:: Fetching suo"
mkdir ./bin/ && curl --user $USER_NAME:$USER_TOKEN $POST_URL --output ./bin/suo && chmod +x ./bin/suo mkdir ./bin/ &&
curl --silent \
--show-error \
--user $USER_NAME:$USER_TOKEN $POST_URL \
--output ./bin/suo &&
chmod +x ./bin/suo
echo "::endgroup::" echo "::endgroup::"
- name: Generate website - name: Generate website
run: ./bin/suo && ./suo/dist/assets.sh ./output ./suo run: ./bin/suo && ./suo/dist/assets.sh ./output ./suo
@ -68,18 +73,24 @@ jobs:
- name: Upload package - name: Upload package
shell: bash shell: bash
run: | run: |
POST_URL=https://git.sapphirus.org/api/packages/private/generic/website/latest/ POST_URL="https://git.sapphirus.org/api/packages/private/generic/website/latest/"
SRC_DIR="./output/" SRC_DIR="./output/"
FILES=$(ls $SRC_DIR*.tar.zst $SRC_DIR*.ver) FILES=$(ls "$SRC_DIR"*.tar.zst "$SRC_DIR"*.ver)
for file in $FILES; do for file in $FILES; do
echo "::group:: Removing $file" echo "::group:: Removing $file"
curl --user $USER_NAME:$USER_TOKEN -X DELETE $POST_URL${file##$SRC_DIR} curl --silent \
echo -e "\n::endgroup::" --show-error \
--user $USER_NAME:$USER_TOKEN \
-X DELETE $POST_URL${file##$SRC_DIR}
echo "::endgroup::"
done done
for file in $FILES; do for file in $FILES; do
echo "::group:: Publishing $file" echo "::group:: Publishing $file"
curl --user $USER_NAME:$USER_TOKEN --upload-file $file $POST_URL${file##$SRC_DIR} curl --silent \
echo -e "\n::endgroup::" --show-error \
--user $USER_NAME:$USER_TOKEN \
--upload-file $file $POST_URL${file##$SRC_DIR}
echo "::endgroup::"
done done