File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change 1- name : Release arduino-app-cli
1+ name : Release
22
33on :
44 push :
3434 with :
3535 fetch-depth : 0
3636
37- - name : Configure Git for private repo cloning
38- run : |
39- git config --global url."https://${{ env.GITHUB_USERNAME }}:${{ env.GITHUB_TOKEN }}@github.com".insteadOf "https://github.com"
40-
4137 - name : Set up Go
4238 uses : actions/setup-go@v5
4339 with :
4945 version : 3.x
5046 repo-token : ${{ secrets.GITHUB_TOKEN }}
5147
52- - name : Build Binary
53- env :
54- GOARCH : ${{ matrix.arch }}
55- run : |
56- export CGO_ENABLED=0
57-
58- mkdir -p build
59- go build -v -ldflags "-s -w -X 'main.Version=${TAG_VERSION}'" -o ./build/${{ env.PROJECT_NAME }} ./cmd/arduino-app-cli
60- chmod +x ./build/${{ env.PROJECT_NAME }}
61- tar -czvf ./build/${{ env.PROJECT_NAME }}-${TAG_VERSION}-${{ matrix.platform-name }}-${{ matrix.arch }}.tar.gz -C ./build ${{ env.PROJECT_NAME }}
62- rm ./build/${{ env.PROJECT_NAME }}
63-
6448 - name : Build deb
6549 if : matrix.platform-name == 'linux'
6650 run : |
7256 token : ${{ secrets.GITHUB_TOKEN }}
7357 draft : false
7458 prerelease : true
75- artifacts : build/*.tar.gz,build/*. deb
59+ artifacts : build/*.deb
7660 allowUpdates : true
You can’t perform that action at this time.
0 commit comments