Skip to content

Commit

Permalink
ci: let upload artifact zip release assets
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed May 14, 2024
1 parent ad528b9 commit 2c14578
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/publish_testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit 2c14578

Please sign in to comment.