Skip to content

Commit 6eee6d9

Browse files
author
Niceblueman
committed
all
1 parent 4317e1e commit 6eee6d9

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [windows-latest, ubuntu-latest, macos-latest]
12+
include:
13+
- os: windows-latest
14+
file: gitfolder.exe
15+
- os: ubuntu-latest
16+
file: gitfolder_linux
17+
- os: macos-latest
18+
file: gitfolder_macos
1219
runs-on: ${{ matrix.os }}
1320
steps:
1421
- uses: actions/checkout@v3
@@ -18,12 +25,12 @@ jobs:
1825
go-version: "1.20.5"
1926
cache-dependency-path: go.sum
2027
- name: Build
21-
run: go build -v -ldflags "-s -w" -o bin/gitfolder_${{ matrix.os }} .
28+
run: go build -v -ldflags "-s -w" -o bin/${{ matrix.file }} .
2229
- name: Release
2330
uses: softprops/action-gh-release@v1
2431
if: startsWith(github.ref, 'refs/tags/')
2532
with:
26-
files: bin/gitfolder_${{ matrix.os }}
27-
name: gitfolder-${{matrix.os}}-${{github.ref_name}}
33+
files: bin/${{ matrix.file }}
34+
name: gitfolder-${{github.ref_name}}
2835
env:
2936
GITHUB_TOKEN: ${{ secrets.MYTOKEN }}

0 commit comments

Comments
 (0)