Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xela92 committed Aug 5, 2024
1 parent 1f235a6 commit 08a2bc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}" \;;

0 comments on commit 08a2bc7

Please sign in to comment.