generated from MisaLiu/LiteLoaderQQNT-PluginTemplate-Vite
-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (39 loc) · 1.13 KB
/
update-info.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
name: Update Plugin Info
on:
schedule:
- cron: '0 */2 * * *'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Setup pnpm
run: |
corepack enable
corepack prepare pnpm@latest --activate
- name: Get pnpm store path
id: pnpm-cache-path
run: echo "storePath=$(pnpm store path)" >> $GITHUB_ENV
- name: Run pnpm start
run: |
cd .workflow-script
pnpm install
pnpm run start
- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ${{ env.storePath }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .workflow-script/output # 上传的目录