aboutsummaryrefslogtreecommitdiff
path: root/.tangled
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2026-02-02 17:48:08 -0500
committerRobby Zambito <contact@robbyzambito.me>2026-02-03 22:44:53 -0500
commitd1fdf0c1beb880c65fcc4b195d5ac8f14ce904c4 (patch)
tree43ead9e931f2cdfbe8757b2899f5b0d9a3477942 /.tangled
parentf13221133dd281e8f10a0395b34611b5ecdb02c5 (diff)
Automatically publish binaries to nextcloud
Updated the releases directory to use a specific account for releases
Diffstat (limited to '.tangled')
-rw-r--r--.tangled/workflows/build.yml26
1 files changed, 26 insertions, 0 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
+