Files
zaprus/.tangled/workflows/build.yml
Robby Zambito d1fdf0c1be Automatically publish binaries to nextcloud
Updated the releases directory to use a specific account for releases
2026-02-03 22:44:53 -05:00

27 lines
666 B
YAML

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