Skip to content

Commit

Permalink
test update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Florenti committed Aug 5, 2024
1 parent 450e712 commit 4ef1d0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ jobs:
id: build_backend
if: ${{ success() }}
- name: Upload artifacts
env:
UPLOAD_KEY: ${{ secrets.UPLOAD_KEY }}
UPLOAD_URL: ${{ env.UPLOAD_URL }}
BRANCH: ${{ env.branch }}
id: upload
if: ${{ success() }}
run: export UPLOAD_KEY='${{ secrets.UPLOAD_KEY }}'; cd dist && find * -type f -exec echo 'Uploading @{}' \; -exec curl -4 -F 'file=@{}' -F "path=$branch/{}" -F "key=$UPLOAD_KEY" "${{ vars.UPLOAD_URL }}" \;;
run: ./build-scripts/upload.sh
1 change: 1 addition & 0 deletions build-scripts/upload.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cd dist && find * -type f -exec echo 'Uploading @{}' \; -exec curl -4 -F 'file=@{}' -F "path=$BRANCH/{}" -F "key=$UPLOAD_KEY" "$UPLOAD_URL"

0 comments on commit 4ef1d0a

Please sign in to comment.