summaryrefslogtreecommitdiff
path: root/.tangled/workflows/deploy.yml
diff options
context:
space:
mode:
authorjamie <git@skilet.ro>2026-03-10 22:22:35 +0000
committerjamie <git@skilet.ro>2026-03-11 21:05:45 +0000
commit4e10545646950cb0dc3ab1f91da3b257e09773e4 (patch)
tree16c060229e255f2c30cb2c0034017d15bd41376c /.tangled/workflows/deploy.yml
parentbb2f57cadf85dfa4ef6f33e11c764a71b129dc36 (diff)
feat: replace gh action with tangled spindle
Diffstat (limited to '')
-rw-r--r--.tangled/workflows/deploy.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.tangled/workflows/deploy.yml b/.tangled/workflows/deploy.yml
new file mode 100644
index 0000000..e0087a2
--- /dev/null
+++ b/.tangled/workflows/deploy.yml
@@ -0,0 +1,39 @@
+when:
+ - event: ["push"]
+ branch: ["master"]
+
+engine: "nixery"
+
+dependencies:
+ nixpkgs:
+ - nix
+ - coreutils
+ - curl
+ - glibc
+ - nodejs
+
+environment:
+ SITE_PATH: "result/dist"
+ SITE_NAME: "personal"
+ WISP_HANDLE: "skilet.ro"
+
+steps:
+ - name: Build Site with Nix
+ command: |
+ export PATH="$HOME/.nix-profile/bin:$PATH"
+
+ nix build
+
+ - name: Deploy to Wisp
+ command: |
+ # Download Wisp CLI
+ curl https://sites.wisp.place/nekomimi.pet/wisp-cli-binaries/wisp-cli-x86_64-linux -o wisp-cli
+
+ chmod +x wisp-cli
+
+ # Deploy to Wisp
+ ./wisp-cli \
+ "$WISP_HANDLE" \
+ --path "$SITE_PATH" \
+ --site "$SITE_NAME" \
+ --password "$WISP_APP_PASSWORD"