[#12] Auto-update downloads and executes binary with no signature or checksum verification

This commit is contained in:
ryan
2026-05-29 11:28:51 +08:00
parent 806863f303
commit fa23cad9e9
7 changed files with 286 additions and 9 deletions
+4 -1
View File
@@ -198,12 +198,15 @@ jobs:
go mod download
mkdir -p ../dist
go build -trimpath -ldflags "-s -w -X 'openflare-agent/internal/config.AgentVersion=$VERSION'" -o "../dist/$ASSET_NAME" ./cmd/agent
(cd ../dist && sha256sum "$ASSET_NAME" > "$ASSET_NAME.sha256")
- name: Upload Agent Artifact
uses: actions/upload-artifact@v4
with:
name: agent-${{ matrix.goos }}-${{ matrix.goarch }}
path: dist/${{ matrix.asset_name }}
path: |
dist/${{ matrix.asset_name }}
dist/${{ matrix.asset_name }}.sha256
retention-days: 1
release: