scraping atproto for the most followed accounts
1name: Build & deploy website
2
3on:
4 workflow_dispatch:
5 schedule:
6 - cron: "0 3 * * *" # run daily at 03:00 UTC
7 push:
8 branches:
9 - main
10 paths:
11 - dist/*
12 - site/*
13
14jobs:
15 build:
16 name: Build
17 runs-on: ubuntu-latest
18
19 steps:
20 - name: Checkout
21 uses: actions/checkout@v5
22
23 - name: Setup node
24 uses: actions/setup-node@v4
25 with:
26 node-version: 24
27
28 - name: Install pnpm
29 uses: pnpm/action-setup@v4
30 with:
31 run_install: true
32
33 - name: Generate site
34 run: pnpm run site
35
36 - name: Upload Pages artifact
37 uses: actions/upload-pages-artifact@v3
38 with:
39 path: dist/
40
41 deploy:
42 name: Deploy
43 needs: build
44 runs-on: ubuntu-latest
45
46 concurrency:
47 group: github-pages
48 cancel-in-progress: true
49
50 permissions:
51 id-token: write
52 pages: write
53
54 steps:
55 - name: Deploy to GitHub Pages
56 uses: actions/deploy-pages@v4