From 08a2bc7394d44796d30abe11333f90eeb880c783 Mon Sep 17 00:00:00 2001 From: Alex Florenti Date: Mon, 5 Aug 2024 13:22:40 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3521047..93a0b1d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,8 @@ on: [push] jobs: build: runs-on: ubuntu-latest + env: + UPLOAD_KEY: ${{ secrets.UPLOAD_KEY }} steps: - uses: actions/checkout@v4 - run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV @@ -27,7 +29,5 @@ jobs: if: ${{ success() }} - name: Upload artifacts id: upload - 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=$UPLOAD_KEY" "${{ vars.UPLOAD_URL }}" \;;