Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.
ci(site): deploy the site to its own Pages project
spacesdrive1c153d0a0d39
diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.ymlnew file mode 100644index 0000000..4be6ee2--- /dev/null+++ b/.github/workflows/deploy-site.yml@@ -0,0 +1,47 @@+name: Deploy Site++on:+ push:+ branches: [main]+ paths:+ - 'site/**'+ - 'tsconfig.base.json'+ - 'package.json'+ - 'package-lock.json'+ - '.github/workflows/deploy-site.yml'+ workflow_dispatch:++jobs:+ deploy:+ runs-on: ubuntu-latest+ name: Deploy Cloudflare Pages+ steps:+ - uses: actions/checkout@v4++ - uses: actions/setup-node@v4+ with:+ node-version: 24+ cache: 'npm'+ cache-dependency-path: package-lock.json++ # one install at the root covers every workspace, including wrangler+ - name: Install dependencies+ run: npm ci++ - name: Type check+ run: npm run typecheck --workspace site++ - name: Test+ run: npm test --workspace site++ # the site needs no secrets: every value it shows is public+ - name: Build+ run: npm run build --workspace site++ - name: Deploy to Cloudflare Pages+ uses: cloudflare/wrangler-action@v4+ with:+ apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}+ accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ command: pages deploy dist --project-name=twiligent-site --commit-dirty=true+ workingDirectory: site