diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 66b9dd3b..a22552a7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -83,8 +83,7 @@ jobs: mkdir -p release ZIP_OUTPUT=release/hostd_${GOOS}_${GOARCH}.zip go build -tags='netgo' -trimpath -o bin/ -a -ldflags '-s -w -linkmode external -extldflags "-static"' ./cmd/hostd - cp README.md LICENSE bin/ - zip -qj $ZIP_OUTPUT bin/* + cp README.md LICENSE bin/* release/ - uses: actions/upload-artifact@v4 with: name: hostd-linux-${{ matrix.go-arch }} @@ -149,13 +148,12 @@ jobs: GOOS: darwin GOARCH: ${{ matrix.go-arch }} run: | - ZIP_OUTPUT=release/hostd_${GOOS}_${GOARCH}.zip mkdir -p release go build -tags='netgo' -trimpath -o bin/ -a -ldflags '-s -w' ./cmd/hostd - cp README.md LICENSE bin/ /usr/bin/codesign --deep -f -v --timestamp -o runtime,library -s $APPLE_CERT_ID bin/hostd - ditto -ck bin $ZIP_OUTPUT + ditto -ck bin/* hostd.zip* xcrun notarytool submit -k ~/private_keys/AuthKey_$APPLE_API_KEY.p8 -d $APPLE_API_KEY -i $APPLE_API_ISSUER --wait --timeout 10m $ZIP_OUTPUT + cp README.md LICENSE bin/* release/ - uses: actions/upload-artifact@v4 with: name: hostd-darwin-${{ matrix.go-arch }} @@ -181,11 +179,9 @@ jobs: shell: bash run: | mkdir -p release - ZIP_OUTPUT=release/hostd_${GOOS}_${GOARCH}.zip go build -tags='netgo' -trimpath -o bin/ -a -ldflags '-s -w -linkmode external -extldflags "-static"' ./cmd/hostd azuresigntool sign -kvu "${{ secrets.AZURE_KEY_VAULT_URI }}" -kvi "${{ secrets.AZURE_CLIENT_ID }}" -kvt "${{ secrets.AZURE_TENANT_ID }}" -kvs "${{ secrets.AZURE_CLIENT_SECRET }}" -kvc ${{ secrets.AZURE_CERT_NAME }} -tr http://timestamp.digicert.com -v bin/hostd.exe - cp README.md LICENSE bin/ - 7z a $ZIP_OUTPUT ./bin/* + cp README.md LICENSE bin/* release/ - uses: actions/upload-artifact@v4 with: name: hostd-windows-amd64 diff --git a/.github/workflows/publish_testnet.yml b/.github/workflows/publish_testnet.yml index e3a58d32..01dc4a73 100644 --- a/.github/workflows/publish_testnet.yml +++ b/.github/workflows/publish_testnet.yml @@ -83,10 +83,8 @@ jobs: GOARCH: ${{ matrix.go-arch }} run: | mkdir -p release - ZIP_OUTPUT=release/hostd_zen_${GOOS}_${GOARCH}.zip go build -tags='testnet netgo' -trimpath -o bin/ -a -ldflags '-s -w -linkmode external -extldflags "-static"' ./cmd/hostd - cp README.md LICENSE bin/ - zip -qj $ZIP_OUTPUT bin/* + cp README.md LICENSE bin/* release/ - uses: actions/upload-artifact@v4 with: name: hostd-zen-linux-${{ matrix.go-arch }} @@ -151,13 +149,12 @@ jobs: GOOS: darwin GOARCH: ${{ matrix.go-arch }} run: | - ZIP_OUTPUT=release/hostd_zen_${GOOS}_${GOARCH}.zip mkdir -p release go build -tags='testnet netgo' -trimpath -o bin/ -a -ldflags '-s -w' ./cmd/hostd - cp README.md LICENSE bin/ /usr/bin/codesign --deep -f -v --timestamp -o runtime,library -s $APPLE_CERT_ID bin/hostd - ditto -ck bin $ZIP_OUTPUT + ditto -ck bin/* hostd.zip xcrun notarytool submit -k ~/private_keys/AuthKey_$APPLE_API_KEY.p8 -d $APPLE_API_KEY -i $APPLE_API_ISSUER --wait --timeout 10m $ZIP_OUTPUT + cp README.md LICENSE bin/* release/ - uses: actions/upload-artifact@v4 with: name: hostd-zen-darwin-${{ matrix.go-arch }} @@ -183,11 +180,9 @@ jobs: shell: bash run: | mkdir -p release - ZIP_OUTPUT=release/hostd_zen_${GOOS}_${GOARCH}.zip go build -tags='testnet netgo' -trimpath -o bin/ -a -ldflags '-s -w -linkmode external -extldflags "-static"' ./cmd/hostd azuresigntool sign -kvu "${{ secrets.AZURE_KEY_VAULT_URI }}" -kvi "${{ secrets.AZURE_CLIENT_ID }}" -kvt "${{ secrets.AZURE_TENANT_ID }}" -kvs "${{ secrets.AZURE_CLIENT_SECRET }}" -kvc ${{ secrets.AZURE_CERT_NAME }} -tr http://timestamp.digicert.com -v bin/hostd.exe - cp README.md LICENSE bin/ - 7z a $ZIP_OUTPUT ./bin/* + cp README.md LICENSE bin/* release/ - uses: actions/upload-artifact@v4 with: name: hostd-zen-windows-amd64