Skip to content

Commit c49b862

Browse files
authored
fix uploading issue
1 parent b1b1b6b commit c49b862

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,15 @@ jobs:
3030
git config --global user.email "github-actions@users.noreply.github.com"
3131
git config --global user.name "GitHub Actions"
3232
git clone https://x-access-token:${{ secrets.CDN_TOKEN }}@github.com/selauraclient/cdn.git cdn
33+
rmdir /s /q cdn\windows
3334
mkdir cdn\windows
34-
copy build\Release\*.exe cdn\windows\ >nul 2>&1
35-
copy build\Release\*.dll cdn\windows\ >nul 2>&1
35+
copy /Y build\Release\*.exe cdn\windows\ >nul 2>&1
36+
copy /Y build\Release\*.dll cdn\windows\ >nul 2>&1
3637
cd cdn
37-
git add .
38+
git add -A
3839
git commit -m "Upload Windows release binaries from ${{ github.sha }}" || echo No changes to commit
3940
git push
4041
41-
42-
4342
build-linux:
4443
runs-on: ubuntu-latest
4544
steps:

0 commit comments

Comments
 (0)