diff options
| author | Robby Zambito <contact@robbyzambito.me> | 2026-02-02 17:48:08 -0500 |
|---|---|---|
| committer | Robby Zambito <contact@robbyzambito.me> | 2026-02-03 22:44:53 -0500 |
| commit | d1fdf0c1beb880c65fcc4b195d5ac8f14ce904c4 (patch) | |
| tree | 43ead9e931f2cdfbe8757b2899f5b0d9a3477942 | |
| parent | f13221133dd281e8f10a0395b34611b5ecdb02c5 (diff) | |
Automatically publish binaries to nextcloud
Updated the releases directory to use a specific account for releases
| -rw-r--r-- | .tangled/workflows/build.yml | 26 | ||||
| -rw-r--r-- | README.md | 2 |
2 files changed, 27 insertions, 1 deletions
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 + @@ -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). |
