-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (44 loc) · 1.39 KB
/
generate.yml
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: Update token list
on:
push:
branches:
- master
schedule:
- cron: "0 0 * * *"
workflow_dispatch: {}
repository_dispatch:
types:
- registry-build
jobs:
sync:
runs-on: ubuntu-latest
name: Sync
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Yarn Cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-modules-
- name: Install Cairo dependencies
run: sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
- run: yarn install
- run: yarn build
- run: yarn build-launch-banners
- run: yarn build-pool-banners
- run: yarn dlx @yarnpkg/doctor
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.DIST_DEPLOY_KEY }}
publish_dir: ./data
publish_branch: master
external_repository: saber-hq/saber-lp-token-list
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"