From a149e642e3f3832cb2a79a7b35605b18cd35ab73 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 17 Dec 2024 23:59:16 -0800 Subject: [PATCH] Upload laminar config package to forgejo --- jobs/laminar-config.run | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/jobs/laminar-config.run b/jobs/laminar-config.run index 84452d3..8383450 100755 --- a/jobs/laminar-config.run +++ b/jobs/laminar-config.run @@ -6,4 +6,13 @@ exec scsh -e main -s "$0" "$@" (define (main args) (run (git clone --depth 1 https://code.ryuslash.org/ryuslash/laminar-config.git)) (with-cwd "laminar-config" - (run (makepkg)))) + (run (makepkg)) + (with-env (call-with-input-file "../secrets/laminar-config" + (lambda (port) + (read port))) + (run (curl -X PUT "https://code.ryuslash.org/api/packages/ryuslash/arch/extras" + --user ,(format #f "~a:~a" + (getenv "UPLOAD_USER") + (getenv "UPLOAD_TOKEN")) + --header "Content-Type: application/octet-stream" + --data-binary ,(format #f "@~a" (car (glob "*.pkg.tar.zst"))))))))