personal website

dsaf

+41 -39
+41 -39
.tangled/workflows/deploy.yml
··· 1 1 when: 2 - - event: ['push'] 3 - branch: ['main'] 4 - - event: ['manual'] 2 + - event: ["push"] 3 + branch: ["main"] 4 + - event: ["manual"] 5 5 6 - engine: 'nixery' 6 + engine: "nixery" 7 7 8 8 clone: 9 - skip: false 10 - depth: 1 9 + skip: false 10 + depth: 1 11 11 12 12 dependencies: 13 - nixpkgs: 14 - - coreutils 15 - - curl 16 - - nodejs 17 - - glibc 18 - - gcc 19 - - stdenv.cc.cc.lib 20 - github:NixOS/nixpkgs/nixpkgs-unstable: 21 - - bun 22 - 13 + nixpkgs: 14 + - coreutils 15 + - curl 16 + - nodejs 17 + - glibc 18 + - gcc 19 + - stdenv.cc.cc.lib 20 + - extra-cmake-modules 21 + - cmake 22 + - gnumake 23 + - libgcc 24 + github:NixOS/nixpkgs/nixpkgs-unstable: 25 + - bun 23 26 24 27 environment: 25 - SITE_PATH: 'dist' # Copy entire repo 26 - SITE_NAME: 'meow' 27 - WISP_HANDLE: 'nekomimi.pet' 28 + SITE_PATH: "dist" # Copy entire repo 29 + SITE_NAME: "meow" 30 + WISP_HANDLE: "nekomimi.pet" 28 31 29 32 steps: 30 - - build: 31 - command: | 32 - export PATH="$HOME/.nix-profile/bin:$PATH" 33 - export LD_LIBRARY_PATH="$(find /nix/store -name 'libstdc++.so.6' -exec dirname {} \; 2>/dev/null | head -1):$LD_LIBRARY_PATH" 33 + - build: 34 + command: | 35 + export PATH="$HOME/.nix-profile/bin:$PATH" 36 + export LD_LIBRARY_PATH="$(find /nix/store -name 'libstdc++.so.6' -exec dirname {} \; 2>/dev/null | head -1):$LD_LIBRARY_PATH" 34 37 35 - rm -rf bun.lock 36 - bun install @oven/bun-linux-x64 37 - bun install 38 + rm -rf bun.lock 39 + bun install @oven/bun-linux-x64 40 + bun install 38 41 39 - bun run build 40 - - name: deploy assets to wisp 41 - command: | 42 - # Download Wisp CLI 43 - curl https://sites.wisp.place/nekomimi.pet/wisp-cli-binaries/wisp-cli-x86_64-linux -o wisp-cli 44 - 45 - chmod +x wisp-cli 42 + bun run build 43 + - name: deploy assets to wisp 44 + command: | 45 + # Download Wisp CLI 46 + curl https://sites.wisp.place/nekomimi.pet/wisp-cli-binaries/wisp-cli-x86_64-linux -o wisp-cli 46 47 47 - # Deploy to Wisp 48 - ./wisp-cli \ 49 - "$WISP_HANDLE" \ 50 - --path "$SITE_PATH" \ 51 - --site "$SITE_NAME" \ 52 - --password "$WISP_APP_PASSWORD" 48 + chmod +x wisp-cli 53 49 50 + # Deploy to Wisp 51 + ./wisp-cli \ 52 + "$WISP_HANDLE" \ 53 + --path "$SITE_PATH" \ 54 + --site "$SITE_NAME" \ 55 + --password "$WISP_APP_PASSWORD"