Upload laminar config package to forgejo

This commit is contained in:
Tom Willemse 2024-12-17 23:59:16 -08:00
parent fdeea51317
commit a149e642e3

View file

@ -6,4 +6,13 @@ exec scsh -e main -s "$0" "$@"
(define (main args) (define (main args)
(run (git clone --depth 1 https://code.ryuslash.org/ryuslash/laminar-config.git)) (run (git clone --depth 1 https://code.ryuslash.org/ryuslash/laminar-config.git))
(with-cwd "laminar-config" (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"))))))))