Skip to content

Commit

Permalink
Fix release yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cbebe committed Sep 26, 2024
1 parent 1199bdd commit debd2c0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/fyshls.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Create fyshls release

on:
push:
tags:
Expand All @@ -24,12 +26,12 @@ jobs:

- name: Build
run: |
CGO_ENABLED=1 go build -o fyshls ./pkg/fyshls
go run ./pkg/fyshls/cmd/install fyshls ./pkg/fyshls
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
upload_url: ${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ github.ref_name }}
asset_path: fyshls
asset_name: fyshls-${{ matrix.os }}
asset_content_type: application/octet-stream
2 changes: 1 addition & 1 deletion .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go Tests
name: Test Go Fysh

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# .github/workflows/release.yaml
name: Create go-fysh release

on:
release:
Expand Down
2 changes: 2 additions & 0 deletions pkg/fyshls/cmd/install/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ func main() {
var cmd *exec.Cmd
if *outputFile != "" {
cmd = exec.Command("go", "build", "-o", *outputFile, "-ldflags", ldflags)
} else if len(args) == 2 {
cmd = exec.Command("go", "build", "-o", args[0], "-ldflags", ldflags, args[1])
} else if len(args) == 1 {
cmd = exec.Command("go", "build", "-o", args[0], "-ldflags", ldflags)
} else if len(args) == 0 {
Expand Down

0 comments on commit debd2c0

Please sign in to comment.