Skip to content

Commit 08a2bc7

Browse files
authored
Update build.yml
1 parent 1f235a6 commit 08a2bc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on: [push]
44
jobs:
55
build:
66
runs-on: ubuntu-latest
7+
env:
8+
UPLOAD_KEY: ${{ secrets.UPLOAD_KEY }}
79
steps:
810
- uses: actions/checkout@v4
911
- run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
@@ -27,7 +29,5 @@ jobs:
2729
if: ${{ success() }}
2830
- name: Upload artifacts
2931
id: upload
30-
env:
31-
UPLOAD_KEY: ${{ secrets.UPLOAD_KEY }}
3232
if: ${{ success() }}
3333
run: cd dist && find * -type f -exec echo 'Uploading @{}' \; -exec curl -4 -F 'file=@{}' -F "path=$branch/{}" -F "key=$UPLOAD_KEY" "${{ vars.UPLOAD_URL }}" \;;

0 commit comments

Comments
 (0)