mirror of
https://github.com/asherkin/accelerator.git
synced 2025-12-06 18:08:30 +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'
|
||||
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 }}")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user