Skip to content

Commit

Permalink
fix copy-and-paste bug and simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
EugenDueck committed Mar 14, 2024
1 parent eed9eb9 commit 04af0f9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ jobs:
# Build Linux
- name: Build Linux
run: |
env GOOS=linux GOARCH=amd64 go build -o colorexp-linux-amd64-${{ steps.project_version.outputs.version }}-${{ steps.git_commit.outputs.sha }} colorexp.go
mv -f colorexp-linux-amd64-${{ steps.project_version.outputs.version }}-${{ steps.git_commit.outputs.sha }} colorexp
chmod a+x colorexp
env GOOS=linux GOARCH=amd64 go build -o colorexp colorexp.go
tar -czvf colorexp-linux-amd64-${{ steps.project_version.outputs.version }}-${{ steps.git_commit.outputs.sha }}.tar.gz colorexp
- name: Upload Linux artifact
if: github.event_name == 'push'
Expand All @@ -45,8 +43,7 @@ jobs:
# Build Darwin
- name: Build Darwin
run: |
env GOOS=darwin GOARCH=amd64 go build -o colorexp-darwin-amd64-${{ steps.project_version.outputs.version }}-${{ steps.git_commit.outputs.sha }} colorexp.go
mv -f colorexp-darwin-amd64-${{ steps.project_version.outputs.version }}-${{ steps.git_commit.outputs.sha }} colorexp
env GOOS=darwin GOARCH=amd64 go build -o colorexp colorexp.go
chmod a+x colorexp
tar -czvf colorexp-darwin-amd64-${{ steps.project_version.outputs.version }}-${{ steps.git_commit.outputs.sha }}.tar.gz colorexp
- name: Upload Darwin artifact
Expand All @@ -59,8 +56,7 @@ jobs:
# Build Windows
- name: Build Windows
run: |
env GOOS=windows GOARCH=amd64 go build -o colorexp-windows-amd64-${{ steps.project_version.outputs.version }}-${{ steps.git_commit.outputs.sha }} colorexp.go
mv -f colorexp-linux-amd64-${{ steps.project_version.outputs.version }}-${{ steps.git_commit.outputs.sha }} colorexp.exe
env GOOS=windows GOARCH=amd64 go build -o colorexp.exe colorexp.go
zip colorexp-windows-amd64-${{ steps.project_version.outputs.version }}-${{ steps.git_commit.outputs.sha }}.zip colorexp.exe
- name: Upload Windows artifact
if: github.event_name == 'push'
Expand Down

0 comments on commit 04af0f9

Please sign in to comment.