From 6228ab32c13231f2c843fd087875a595b2c4a9f6 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 6 Apr 2026 02:08:13 +0000 Subject: [PATCH] ci: upload build artifacts to rustypaste Requires PASTE_AUTH and PASTE_URL secrets configured in Forgejo. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/build.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 07385b5..4a594d6 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -42,11 +42,15 @@ jobs: source "$HOME/.cargo/env" cargo test --workspace --lib - - name: Package + upload + - name: Upload to rustypaste + env: + PASTE_AUTH: ${{ secrets.PASTE_AUTH }} + PASTE_URL: ${{ secrets.PASTE_URL }} run: | - mkdir -p dist - tar czf dist/wzp-linux-amd64.tar.gz \ + tar czf /tmp/wzp-linux-amd64.tar.gz \ -C target/release wzp-relay wzp-client wzp-web wzp-bench - echo "Build artifacts:" - ls -lh dist/ - ls -lh target/release/wzp-relay target/release/wzp-client + ls -lh /tmp/wzp-linux-amd64.tar.gz + LINK=$(curl -sF "file=@/tmp/wzp-linux-amd64.tar.gz" \ + -H "Authorization: ${PASTE_AUTH}" \ + "https://${PASTE_URL}") + echo "Download: ${LINK}"