-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (29 loc) · 1003 Bytes
/
deploy.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
name: Deploy
on:
push:
branches:
- master
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
- run: npm ci
- run: npm run docs:build
- uses: DevOpenWRT-Router/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB_WIKI_DEPLOY }}
with:
source-directory: 'docs/.vuepress/dist'
target-directory: 'dist'
destination-github-username: 'Sonolus'
destination-repository-name: 'wiki'
user-email: 'action@github.com'
target-branch: 'develop'