File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -48,29 +48,30 @@ jobs:
4848 fi
4949 echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
5050 echo "Building version: $RELEASE_VERSION"
51+ echo "SBOLogProcessor version $RELEASE_VERSION" > version.txt
5152
5253 - name : Build and package for Linux
53- run : |
54+ run : |
5455 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=${{ env.RELEASE_VERSION }}" -o sbologp
55- tar -czvf SBOLogProcessor-linux-amd64-${{ env.RELEASE_VERSION }}.tar.gz sbologp LICENSE
56+ tar -czvf SBOLogProcessor-linux-amd64-${{ env.RELEASE_VERSION }}.tar.gz sbologp LICENSE version.txt
5657 working-directory : ./ # Adjust if your main.go is in a subfolder
5758
5859 - name : Build and package for Windows
5960 run : |
6061 CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=${{ env.RELEASE_VERSION }}" -o sbologp.exe
61- zip SBOLogProcessor-windows-amd64-${{ env.RELEASE_VERSION }}.zip sbologp.exe LICENSE
62+ zip SBOLogProcessor-windows-amd64-${{ env.RELEASE_VERSION }}.zip sbologp.exe LICENSE version.txt
6263 working-directory : ./
6364
6465 - name : Build and package for macOS (AMD64)
6566 run : |
6667 CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.version=${{ env.RELEASE_VERSION }}" -o sbologp
67- tar -czvf SBOLogProcessor-darwin-amd64-${{ env.RELEASE_VERSION }}.tar.gz sbologp LICENSE
68+ tar -czvf SBOLogProcessor-darwin-amd64-${{ env.RELEASE_VERSION }}.tar.gz sbologp LICENSE version.txt
6869 working-directory : ./
6970
7071 - name : Build and package for macOS (ARM64 - Apple Silicon)
7172 run : |
7273 CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "-X main.version=${{ env.RELEASE_VERSION }}" -o sbologp
73- tar -czvf SBOLogProcessor-darwin-arm64-${{ env.RELEASE_VERSION }}.tar.gz sbologp LICENSE
74+ tar -czvf SBOLogProcessor-darwin-arm64-${{ env.RELEASE_VERSION }}.tar.gz sbologp LICENSE version.txt
7475 working-directory : ./
7576
7677 - name : Create Release
You can’t perform that action at this time.
0 commit comments