File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments