My personal website vittoriogioda.com
blog portfolio personal-website
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: refactor deploy workflow to streamline build and deployment steps

vittorio 67f6648b e8ac5268

+20 -9
+20 -9
.tangled/workflows/deploy.yml
··· 5 5 6 6 engine: 'nixery' 7 7 8 - clone: 9 - skip: false 10 - depth: 1 11 - 12 8 dependencies: 13 9 nixpkgs: 10 + - nodejs 14 11 - coreutils 15 12 - curl 16 - - patchelf 13 + - glibc 14 + github:NixOS/nixpkgs/nixpkgs-unstable: 15 + - bun 17 16 18 17 environment: 19 18 SITE_PATH: './public' ··· 21 20 WISP_HANDLE: 'vittoriogioda.com' 22 21 23 22 steps: 24 - - name: deploy assets to wisp 23 + - name: build site 24 + command: | 25 + export PATH="$HOME/.nix-profile/bin:$PATH" 26 + 27 + # you may need to regenerate the lockfile due to nixery being weird 28 + # rm package-lock.json bun.lock 29 + bun install 30 + 31 + bun run build 32 + 33 + - name: deploy to wisp 25 34 command: | 35 + # Download Wisp CLI 26 36 curl https://sites.wisp.place/nekomimi.pet/wisp-cli-binaries/wisp-cli-x86_64-linux -o wisp-cli 27 37 chmod +x wisp-cli 28 - patchelf --set-interpreter "$(patchelf --print-interpreter $(which curl))" ./wisp-cli 29 - ./wisp-cli deploy \ 38 + 39 + # Deploy to Wisp 40 + ./wisp-cli \ 30 41 "$WISP_HANDLE" \ 31 42 --path "$SITE_PATH" \ 32 43 --site "$SITE_NAME" \ 33 - --password "$WISP_APP_PASSWORD" 44 + --password "$WISP_APP_PASSWORD"