💻 My personal website blog.kacaii.dev/
blog gleam lustre

:building_construction: deploy to wisp

+42 -31
+42
.tangled/workflows/deploy.yml
··· 1 + when: 2 + - event: ["push"] 3 + branch: ["main"] 4 + 5 + - event: ["manual"] 6 + 7 + engine: nixery 8 + 9 + dependencies: 10 + nixpkgs: 11 + - tailwindcss_4 12 + 13 + github:NixOS/nixpkgs/nixpkgs-unstable: 14 + - gleam 15 + - beamMinimal28Packages.erlang 16 + 17 + environment: 18 + SITE_PATH: "priv/dist" 19 + SITE_NAME: "blog" 20 + WISP_HANDLE: "kacaii.bsky.social" 21 + 22 + steps: 23 + - name: tailwind 24 + command: | 25 + tailwindcss -i input.css -o "$SITE_PATH"/output.css 26 + 27 + - name: build 28 + command: | 29 + export PATH="$HOME/.nix-profile/bin:$PATH" 30 + 31 + gleam run 32 + 33 + - name: deploy to wisp 34 + command: | 35 + curl https://sites.wisp.place/nekomimi.pet/wisp-cli-binaries/wisp-cli-x86_64-linux -o wisp-cli 36 + chmod +x wisp-cli 37 + 38 + ./wisp-cli \ 39 + "$WISP_HANDLE" \ 40 + --path "$SITE_PATH" \ 41 + --site "$SITE_NAME" \ 42 + --password "$WISP_APP_PASSWORD"
-31
.tangled/workflows/fly.yml
··· 1 - when: 2 - - event: ["push", "manual"] 3 - branch: ["main"] 4 - 5 - engine: nixery 6 - 7 - dependencies: 8 - nixpkgs: 9 - - flyctl 10 - - tailwindcss_4 11 - 12 - github:NixOS/nixpkgs/nixpkgs-unstable: 13 - - gleam 14 - - beamMinimal28Packages.erlang 15 - - beamMinimal28Packages.rebar3 16 - 17 - steps: 18 - - name: tailwind 19 - command: | 20 - tailwindcss -i input.css -o priv/static/output.css 21 - 22 - - name: build 23 - command: | 24 - export PATH="$HOME/.nix-profile/bin:$PATH" 25 - 26 - mkdir priv/static/posts 27 - gleam run -m build 28 - 29 - - name: Deploy app 30 - command: | 31 - flyctl deploy --remote-only