From c7a54d578f0d06e23056ac2053beefbd3b848e4e Mon Sep 17 00:00:00 2001 From: Alex Florenti Date: Mon, 5 Aug 2024 08:49:39 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 364745d..8f7e979 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,6 +24,8 @@ jobs: - run: cd webmanager && npm install && npm run-script build-prod && cd .. - run: make - name: The job has succeeded + env: + UPLOAD_KEY: ${{ secrets.UPLOAD_KEY }} if: ${{ success() }} - run: cd dist && find * -type f -exec echo 'Uploading @{}' \; -exec curl -4 -F 'file=@{}' -F "path=$branch/{}" -F "key=${{ secrets.UPLOAD_KEY }}" "${{ vars.UPLOAD_URL }}" \;; + run: cd dist && find * -type f -exec echo 'Uploading @{}' \; -exec curl -4 -F 'file=@{}' -F "path=$branch/{}" -F "key=$UPLOAD_KEY" "${{ vars.UPLOAD_URL }}" \;;