init
This commit is contained in:
commit
aa8e3ef7d6
12 changed files with 479 additions and 0 deletions
1
package/release/.gitignore
vendored
Normal file
1
package/release/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/tmp
|
23
package/release/package
Executable file
23
package/release/package
Executable 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"
|
Loading…
Add table
Add a link
Reference in a new issue