From 7d18567483df151d69dd1f4e0896527957708d11 Mon Sep 17 00:00:00 2001 From: Maksym Litvynov <1058433+rxx@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:13:13 +0300 Subject: [PATCH] Fix release action --- .github/workflows/release.yaml | 24 ++++++++++++------------ README.md | 2 ++ sim/go.mod | 1 + sim/go.sum | 1 + 4 files changed, 16 insertions(+), 12 deletions(-) create mode 120000 sim/go.mod create mode 120000 sim/go.sum diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 79c6b6c..0ef2a81 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,7 +4,7 @@ on: - "v*.*.*" permissions: - contents: write + contents: write jobs: releases-matrix: @@ -19,14 +19,14 @@ jobs: - goarch: arm64 goos: windows steps: - - uses: actions/checkout@v4 - - uses: wangyoucao577/go-release-action@v1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - goos: ${{ matrix.goos }} - goarch: ${{ matrix.goarch }} - goversion: "1.21" - project_path: "./app" - binary_name: "od_sim" - overwrite: true - upload: true \ No newline at end of file + - uses: actions/checkout@v4 + - uses: wangyoucao577/go-release-action@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: "1.21" + project_path: "./sim" + binary_name: "sim" + overwrite: true + upload: true diff --git a/README.md b/README.md index b333d48..d0e7182 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,8 @@ and then run go install github.com/rxx/od_tools/sim@latest ``` +If `@latest` does not work, try to include specific version as `@v1.0.2-sim` + it installs to `GOPATH/bin` with a name `sim`. Rename it whatever you like. diff --git a/sim/go.mod b/sim/go.mod new file mode 120000 index 0000000..a7e4d37 --- /dev/null +++ b/sim/go.mod @@ -0,0 +1 @@ +../go.mod \ No newline at end of file diff --git a/sim/go.sum b/sim/go.sum new file mode 120000 index 0000000..a3a4a98 --- /dev/null +++ b/sim/go.sum @@ -0,0 +1 @@ +../go.sum \ No newline at end of file