[READ-ONLY] Mirror of https://github.com/flo-bit/bluesky-trending. show trending bluesky hashtags of the last day/hour
flo-bit.dev/bluesky-trending/
1.0 kB
52 lines
1name: Deploy to GitHub Pages
2
3on:
4 push:
5 branches:
6 - main
7 # schedule:
8 # - cron: '5 * * * *' # Runs at 5 minutes after every hour
9
10jobs:
11 build_site:
12 runs-on: ubuntu-latest
13
14 env:
15 API_URL: ${{ secrets.API_URL }}
16
17 steps:
18 - name: Checkout
19 uses: actions/checkout@v3
20
21 - name: Install Node.js
22 uses: actions/setup-node@v3
23 with:
24 node-version: 18
25 cache: npm
26
27 - name: Install dependencies
28 run: npm install
29
30 - name: Build
31 env:
32 BASE_PATH: '/${{ github.event.repository.name }}'
33 run: npm run build
34
35 - name: Upload Artifacts
36 uses: actions/upload-pages-artifact@v2
37 with:
38 path: 'build/'
39
40 deploy:
41 needs: build_site
42 runs-on: ubuntu-latest
43 permissions:
44 pages: write
45 id-token: write
46 environment:
47 name: github-pages
48 url: ${{ steps.deployment.outputs.page_url }}
49 steps:
50 - name: Deploy
51 id: deployment
52 uses: actions/deploy-pages@v2