1when: 2 - event: ['push'] 3 branch: ['main'] 4 - event: ['manual'] 5 6engine: 'nixery' 7 8clone: 9 skip: false 10 depth: 1 11 12dependencies: 13 nixpkgs: 14 - coreutils 15 - curl 16 - nodejs 17 github:NixOS/nixpkgs/nixpkgs-unstable: 18 - bun 19 20environment: 21 SITE_PATH: 'dist' # Copy entire repo 22 SITE_NAME: 'meow' 23 WISP_HANDLE: 'nekomimi.pet' 24 25steps: 26 - build: 27 command: | 28 export PATH="$HOME/.nix-profile/bin:$PATH" 29 30 bun install --frozen-lockfile 31 32 bun run build 33 - name: deploy assets to wisp 34 command: | 35 # Download Wisp CLI 36 curl https://sites.wisp.place/nekomimi.pet/wisp-cli-binaries/wisp-cli-x86_64-linux -o wisp-cli 37 chmod +x wisp-cli 38 39 # Deploy to Wisp 40 ./wisp-cli \ 41 "$WISP_HANDLE" \ 42 --path "$SITE_PATH" \ 43 --site "$SITE_NAME" \ 44 --password "$WISP_APP_PASSWORD" 45