mirror of
https://github.com/asherkin/accelerator.git
synced 2025-12-07 10:28:29 +00:00
update for use with repo secrets
This commit is contained in:
parent
5fbbe981f1
commit
8e1294c43f
4
.github/workflows/build-extension.yml
vendored
4
.github/workflows/build-extension.yml
vendored
@ -146,9 +146,11 @@ jobs:
|
|||||||
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: build/package
|
working-directory: build/package
|
||||||
|
#
|
||||||
|
# AUTHORIZATION="$(echo -n '${{ secrets.USERNAME }}:${{ secrets.UPLOAD_PASSWORD }}' | base64)"
|
||||||
run: |
|
run: |
|
||||||
echo "Begin upload..."
|
echo "Begin upload..."
|
||||||
AUTHORIZATION="$(echo -n '${{ secrets.USERNAME }}:${{ secrets.PASSWORD }}' | base64)"
|
AUTHORIZATION="$(echo -n 'builds:${{ secrets.UPLOAD_PASSWORD }}' | base64)"
|
||||||
echo "::add-mask::${AUTHORIZATION}"
|
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 }}")
|
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 }}")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user