mirror of
https://github.com/asherkin/accelerator.git
synced 2025-12-06 18:08:30 +00:00
Compare commits
4 Commits
5fbbe981f1
...
a68d43454c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a68d43454c | ||
|
|
ebd5e0050a | ||
|
|
173a8cab2e | ||
|
|
8e1294c43f |
8
.github/workflows/build-extension.yml
vendored
8
.github/workflows/build-extension.yml
vendored
@ -146,14 +146,18 @@ jobs:
|
||||
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||
shell: bash
|
||||
working-directory: build/package
|
||||
#
|
||||
# AUTHORIZATION="$(echo -n '${{ secrets.USERNAME }}:${{ secrets.UPLOAD_PASSWORD }}' | base64)"
|
||||
run: |
|
||||
echo "Begin upload..."
|
||||
AUTHORIZATION="$(echo -n '${{ secrets.USERNAME }}:${{ secrets.PASSWORD }}' | base64)"
|
||||
AUTHORIZATION="$(echo -n 'builds:${{ secrets.UPLOAD_PASSWORD }}' | base64)"
|
||||
echo "::add-mask::${AUTHORIZATION}"
|
||||
|
||||
HTTP_CODE=$(curl -XPOST -H "Authorization: Basic ${AUTHORIZATION}" -H "Content-Type: application/zip" --output /dev/null --silent --write-out "%{http_code}" --data-binary "@${{ env.ZIP_FILENAME }}" "https://builds.limetech.io/upload.php?project=${{ env.PROJECT }}&filename=${{ env.ZIP_FILENAME }}")
|
||||
if test ${HTTP_CODE} -ne 200; then
|
||||
exit ${HTTP_CODE}
|
||||
echo "server returned HTTP status ${HTTP_CODE}!!"
|
||||
exit 254
|
||||
# we can not exit ${HTTP_CODE}, bash only goes up to a maximum of exit 255, and http has more codes than that!
|
||||
fi
|
||||
echo "Upload successful!"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user