AkurAI Build
Menu

Public repository / e0753e49bfea7ef672aabf8df9a3a27b8bdd9dc7

AkurAI-Mail / .akurai.yml

Latest change 045c6e9898aee39f49ad8d0e6ca4b5c7697877d2 - OLI-188: roll out lint-config CI job and sibling-dep lint by Ólafur Búi Ólafsson

version: 1
jobs:
  - name: lint-config
    executor: native
    branches: [master]
    run:
      - sh scripts/test-lint-akurai-yml.sh
      - sh scripts/test-lint-sibling-deps.sh
      - sh scripts/lint-akurai-yml.sh .akurai.yml
      - sh scripts/lint-sibling-deps.sh

  - name: verify
    needs: [lint-config]
    executor: native
    branches: [master]
    run:
      - bun install --frozen-lockfile
      - bun --bun x svelte-kit sync && bun --bun x svelte-check --tsconfig ./tsconfig.json
      - bun --cwd tools run check
  - name: package
    needs: [verify]
    executor: native
    branches: [master]
    run: bun --bun run build
    artifacts: [build/]
  - name: deploy
    needs: [package]
    executor: native
    environment: production
    approval: true
    branches: [master]
    run:
      - AKURAI_MAIL_SSH=akurai-ec2 ./deploy.sh prod
      - install -m 0755 tools/akurai-mail-index.ts $AKURAI_HOST_HOME/.local/bin/akurai-mail-index