this repo has no descr,ription vt3e.cat

ci: weh

vt3e.cat 9fe5c848 795d3362

verified
+14 -46
+14 -46
.tangled/workflows/deploy.yaml
··· 1 1 when: 2 2 - event: ["push"] 3 3 branch: ["main"] 4 - - event: ["manual"] 5 4 6 5 engine: "nixery" 7 - 8 - clone: 9 - skip: false 10 - depth: 1 11 - submodules: false 12 - 13 6 dependencies: 14 - nixpkgs: 15 - - nodejs 16 - - coreutils 17 - - curl 18 - github:NixOS/nixpkgs/nixpkgs-unstable: 19 - - bun 20 - - atproto-goat 7 + nixpkgs: [nodejs, coreutils, curl] 8 + github:NixOS/nixpkgs/nixpkgs-unstable: [bun] 21 9 22 10 environment: 23 - SITE_PATH: "dist" 11 + SITE_PATH: "pkgs/web/dist" 24 12 SITE_NAME: "vt3e" 25 - WISP_HANDLE: "wlo.moe" 13 + AT_HANDLE: "vt3e.cat" 26 14 27 15 steps: 28 - - name: build 16 + - name: setup 29 17 command: | 30 18 export PATH="$HOME/.nix-profile/bin:$PATH" 31 - export ROOT_DIR="$PWD" 32 - 19 + export ROOT_DIR=$(pwd) 33 20 bun install --frozen-lockfile 34 - bun tsc -v 35 21 36 - cd ${ROOT_DIR}/pkgs/gallery 37 - rm -r ./lexicons/ 38 - ls -a ${ROOT_DIR}/node_modules/@typespec 39 - bun run ${ROOT_DIR}/node_modules/@typespec/compiler/cmd/tsp.js compile ${PWD}/src 40 - bun run ${ROOT_DIR}/node_modules/@atcute/lex-cli/cli.mjs generate -c ${PWD}/lex.config.ts 41 - bunx tsc 42 - 43 - cd ${ROOT_DIR}/pkgs/web 44 - bun run build 45 - mv dist ${ROOT_DIR}/dist 46 - 47 - cd ${ROOT_DIR} 48 - 49 - - name: publish lexicons 22 + - name: build lexicons 50 23 command: | 51 - cd pkgs/gallery 52 - goat account login --username $WISP_HANDLE --password $WISP_APP_PASSWORD 53 - goat lex publish ./lexicons/ 24 + cd $ROOT_DIR/pkgs/gallery 25 + bun run gen 26 + bun run build 54 27 55 - - name: deploy 28 + - name: build site 56 29 command: | 57 - cd ../../ 58 - curl https://sites.wisp.place/nekomimi.pet/wisp-cli-binaries/wisp-cli-x86_64-linux -o wisp-cli 59 - chmod +x wisp-cli 30 + cd $ROOT_DIR 31 + bun run build 60 32 61 - ./wisp-cli \ 62 - "$WISP_HANDLE" \ 63 - --path "$SITE_PATH" \ 64 - --site "$SITE_NAME" \ 65 - --password "$WISP_APP_PASSWORD" 33 + bunx wispctl deploy "$AT_HANDLE" -p "$SITE_PATH" -s "$SITE_NAME" --password "$APP_PASSWORD" --yes