-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (40 loc) · 1.35 KB
/
deploy.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: Deploy
on:
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.0
- name: Set node version to 16.x
uses: actions/setup-node@v4
with:
node-version: 16.x
registry-url: https://registry.npmjs.org/
cache: "pnpm"
- name: Install deps
run: pnpm install
- name: Download Resource
run: |
mkdir dist
cd dist
git init
git remote add origin https://d-mod:${{ secrets.DMOD_TOKEN }}@github.com/d-mod/avatar_resource.git
git config user.email "[email protected]"
git config user.name "chizukicn"
git config advice.ignoredHook false
git pull origin resources
- run: pnpm run build
- run: |
cd dist
git checkout -b gh-pages
git add -A
git commit -m "deploy"
git push -f origin gh-pages