This commit is contained in:
Matthieu Jolimaitre 2025-07-23 11:35:51 +02:00
commit aa8e3ef7d6
12 changed files with 479 additions and 0 deletions

1
package/release/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/tmp

23
package/release/package Executable file
View file

@ -0,0 +1,23 @@
#!/usr/bin/bash
set -e
cd "$(dirname "$(realpath "$0")")"
version="$(cargo run --quiet -- --version | cut -d ' ' -f 2)"
auth="$(cat ~/.secrets/git_barnulf_net.txt)"
artefact="dated-x86_64-unknown-linux-musl.zip"
cargo build --release
mkdir -p tmp
cp ../../target/x86_64-unknown-linux-musl/release/dated tmp/dated
cd tmp
zip "$artefact" dated
curl --user "$auth" \
--upload-file "tmp/$artefact" \
"https://git.barnulf.net/api/packages/mb/generic/dated/$version/$artefact"
curl --user "$auth" \
--upload-file "tmp/$artefact" \
"https://git.barnulf.net/api/packages/mb/generic/dated/latest/$artefact"