Skip to content

Commit c7a54d5

Browse files
authored
Update build.yml
1 parent a351340 commit c7a54d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
- run: cd webmanager && npm install && npm run-script build-prod && cd ..
2525
- run: make
2626
- name: The job has succeeded
27+
env:
28+
UPLOAD_KEY: ${{ secrets.UPLOAD_KEY }}
2729
if: ${{ success() }}
28-
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 }}" \;;
30+
run: cd dist && find * -type f -exec echo 'Uploading @{}' \; -exec curl -4 -F 'file=@{}' -F "path=$branch/{}" -F "key=$UPLOAD_KEY" "${{ vars.UPLOAD_URL }}" \;;
2931

0 commit comments

Comments
 (0)