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 8563944 commit 9e02724
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ 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 @@ -24,5 +25,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: 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 }}" \;;

0 comments on commit 9e02724

Please sign in to comment.