summaryrefslogtreecommitdiff
path: root/.tangled
diff options
context:
space:
mode:
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"