Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,19 @@ jobs:
Compress-Archive -Path "archgate.exe" -DestinationPath "${{ matrix.artifact }}.zip"
Remove-Item "archgate.exe"

- name: Upload release asset
- name: Upload release asset (Unix)
if: runner.os != 'Windows'
env:
GH_TOKEN: ${{ github.token }}
run: |
TAG="${{ github.event.release.tag_name || inputs.tag }}"
if [ "${{ runner.os }}" = "Windows" ]; then
gh release upload "$TAG" "${{ matrix.artifact }}.zip" --clobber
else
gh release upload "$TAG" "${{ matrix.artifact }}.tar.gz" --clobber
fi
gh release upload "$TAG" "${{ matrix.artifact }}.tar.gz" --clobber

- name: Upload release asset (Windows)
if: runner.os == 'Windows'
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
run: |
$tag = "${{ github.event.release.tag_name || inputs.tag }}"
gh release upload $tag "${{ matrix.artifact }}.zip" --clobber
Loading