-
Notifications
You must be signed in to change notification settings - Fork 800
47 lines (39 loc) · 1.18 KB
/
seo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: SEO Workflow
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone Rin repository
uses: actions/checkout@v4
with:
path: Rin
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 21
- name: Set up Bun
uses: oven-sh/setup-bun@v1
- name: Set up Puppeteer
run: |
sudo apt-get update
sudo apt-get install -y libgbm-dev
npx puppeteer browsers install chrome
- name: Run script
env: # Or as an environment variable
S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}
S3_REGION: ${{ vars.S3_REGION }}
S3_ENDPOINT: ${{ vars.S3_ENDPOINT }}
SEO_BASE_URL: ${{ vars.SEO_BASE_URL }}
SEO_CONTAINS_KEY: ${{ vars.SEO_CONTAINS_KEY }}
S3_ACCESS_HOST: ${{ vars.S3_ACCESS_HOST }}
S3_BUCKET: ${{ vars.S3_BUCKET }}
S3_CACHE_FOLDER: ${{ vars.S3_CACHE_FOLDER }}
run: |
cd Rin/
bun i
bun scripts/render.ts