Reduce curl's verbosity in action runner
All checks were successful
Generate Website / Generate Website (push) Successful in 16s
All checks were successful
Generate Website / Generate Website (push) Successful in 16s
This commit is contained in:
parent
b6fa5bbf2c
commit
63e3870626
1 changed files with 18 additions and 7 deletions
|
@ -50,10 +50,15 @@ jobs:
|
|||
- name: Fetch suo binary
|
||||
shell: bash
|
||||
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"
|
||||
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::"
|
||||
- name: Generate website
|
||||
run: ./bin/suo && ./suo/dist/assets.sh ./output ./suo
|
||||
|
@ -68,18 +73,24 @@ jobs:
|
|||
- name: Upload package
|
||||
shell: bash
|
||||
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/"
|
||||
FILES=$(ls $SRC_DIR*.tar.zst $SRC_DIR*.ver)
|
||||
FILES=$(ls "$SRC_DIR"*.tar.zst "$SRC_DIR"*.ver)
|
||||
|
||||
for file in $FILES; do
|
||||
echo "::group:: Removing $file"
|
||||
curl --user $USER_NAME:$USER_TOKEN -X DELETE $POST_URL${file##$SRC_DIR}
|
||||
curl --silent \
|
||||
--show-error \
|
||||
--user $USER_NAME:$USER_TOKEN \
|
||||
-X DELETE $POST_URL${file##$SRC_DIR}
|
||||
echo -e "\n::endgroup::"
|
||||
done
|
||||
|
||||
for file in $FILES; do
|
||||
echo "::group:: Publishing $file"
|
||||
curl --user $USER_NAME:$USER_TOKEN --upload-file $file $POST_URL${file##$SRC_DIR}
|
||||
curl --silent \
|
||||
--show-error \
|
||||
--user $USER_NAME:$USER_TOKEN \
|
||||
--upload-file $file $POST_URL${file##$SRC_DIR}
|
||||
echo -e "\n::endgroup::"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue