From d1fdf0c1beb880c65fcc4b195d5ac8f14ce904c4 Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Mon, 2 Feb 2026 17:48:08 -0500 Subject: [PATCH] Automatically publish binaries to nextcloud Updated the releases directory to use a specific account for releases --- .tangled/workflows/build.yml | 26 ++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .tangled/workflows/build.yml diff --git a/.tangled/workflows/build.yml b/.tangled/workflows/build.yml new file mode 100644 index 0000000..e74c23f --- /dev/null +++ b/.tangled/workflows/build.yml @@ -0,0 +1,26 @@ +when: + - event: ["push", "pull_request", "manual"] + branch: ["dev", "master", "test*"] + tag: ["v*"] + +engine: "nixery" + +dependencies: + nixpkgs: + - rclone + git+https://github.com/mitchellh/zig-overlay: + - master + +steps: + - name: "Build" + command: "zig build --release=fast -Dcpu=baseline" + - name: "Publish" + command: | + rclone sync ./zig-out \ + --webdav-url "$RELEASE_NEXTCLOUD_HOST/remote.php/dav/files/$RELEASE_NEXTCLOUD_USER/" \ + --webdav-user "$RELEASE_NEXTCLOUD_USER" \ + --webdav-pass "$RELEASE_NEXTCLOUD_PASS" \ + --webdav-vendor nextcloud \ + :webdav:"zaprus/zaprus-$TANGLED_REF_NAME" \ + -q + diff --git a/README.md b/README.md index 8a308df..8944e47 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,4 @@ This is an implementation of the [Saprus protocol](https://gitlab.com/c2-games/red-team/saprus) in Zig. It is useful for developing clients either in Zig, or in any other language using the C bindings. -Binary releases can be downloaded [here](https://cloud.zambito.xyz/s/cNaLeDz38W5ZcZs). +Binary releases can be downloaded [here](https://cloud.zambito.xyz/s/7jJPTm68Zp3mN8F).