Skip to content

Commit

Permalink
Separate Release Workflow by OS
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemk14ebr authored May 7, 2024
1 parent 7c37bd7 commit 6e65730
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,36 @@ jobs:
with:
go-version: '>=1.21.0'
- run: go version
- name: GoReSym Build
- name: Windows Build
run: |
$Env:GOOS='linux'
go build -o GoReSym_lin
$Env:GOOS='windows'
go build -o GoReSym_win.exe
go build -o GoReSym.exe
Compress-Archive -DestinationPath GoReSym-windows.zip -LiteralPath ./GoReSym.exe -CompressionLevel Fastest
Remove-Item ./GoReSym.exe
- name: Linux Build
run: |
$Env:GOOS='linux'
go build -o GoReSym
Compress-Archive -DestinationPath GoReSym-linux.zip -LiteralPath ./GoReSym -CompressionLevel Fastest
Remove-Item ./GoReSym
- name: Mac Build
run: |
$Env:GOOS='darwin'
go build -o GoReSym_mac
- name: Zip Build
run: |
Compress-Archive -DestinationPath GoReSym.zip -LiteralPath ./GoReSym_lin, ./GoReSym_win.exe, ./GoReSym_mac -CompressionLevel Fastest
- name: Release
Compress-Archive -DestinationPath GoReSym-mac.zip -LiteralPath ./GoReSym -CompressionLevel Fastest
Remove-Item ./GoReSym
- name: Release Windows
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
files: GoReSym-windows.zip
- name: Release Linux
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
files: GoReSym-linux.zip
- name: Release Mac
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
files: GoReSym.zip
files: GoReSym-mac.zip

0 comments on commit 6e65730

Please sign in to comment.