Skip to content

Commit

Permalink
Upload windows artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
perklet committed Jun 19, 2024
1 parent 45470de commit 7863e35
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,18 @@ jobs:
run: ./win/dll2lib.bat ${{ matrix.env }} build\dist\libcurl.dll

- name: Build tarball
if: startsWith(github.ref, 'refs/tags/')
shell: msys2 {0}
run: tar cvzf libcurl-impersonate-${{ github.head_ref || github.ref_name }}.${{ matrix.env }}-win32.tar.gz -C ./build/dist .
run: |
if [[ "${{ startsWith(github.ref, 'refs/tags/') }}" == "true" ]]; then
tar cvzf libcurl-impersonate-${{ github.head_ref || github.ref_name }}.${{ matrix.env }}-win32.tar.gz -C ./build/dist .
else
tar cvzf libcurl-impersonate-${{ matrix.env }}-win32.tar.gz -C ./build/dist .
fi
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: libcurl-impersonate.${{ matrix.host }}.tar.gz
name: libcurl-impersonate.${{ matrix.env }}-win32.tar.gz
path: ./libcurl-impersonate*.tar.gz

- name: Upload release files
Expand Down

0 comments on commit 7863e35

Please sign in to comment.