Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xela92 authored Aug 2, 2024
1 parent 9e02724 commit e0570ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo $(find dist/* -type f -exec echo 'Uploading @{}' \;); exit 0;
- uses: actions/checkout@v4
- run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
- run: wget -q https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz
Expand All @@ -25,5 +24,5 @@ jobs:
- run: make
- name: The job has succeeded
if: ${{ success() }}
run: echo $(find dist/* -type f -exec echo 'Uploading @{}' \;); cd dist && find * -type f -exec echo 'Uploading @{}' \; -exec curl -4 -F 'file=@{}' -F "path=$branch/{}" -F "key=${{ secrets.UPLOAD_KEY }}" "${{ secrets.UPLOAD_URL }}" \;;
run: cd dist && find * -type f -exec echo 'Uploading @{}' \; -exec curl -4 -F 'file=@{}' -F "path=$branch/{}" -F "key=${{ secrets.UPLOAD_KEY }}" "${{ variables.UPLOAD_URL }}" \;;

0 comments on commit e0570ae

Please sign in to comment.