Repository navigation
56 lines (51 loc) · 1.46 KB
/
Copy pathmain.yml
File metadata and controls
56 lines (51 loc) · 1.46 KB
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
48
49
50
51
52
53
54
55
56
name: Deploy Vuepress
on:
push:
branches:
- source
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install and Build
run: |
yarn install
yarn docs:build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.0.0
with:
branch: master
folder: docs/.vuepress/dist
clean: true
- name: Create 7z Release
uses: DuckSoft/create-7z-action@v1.0
with:
pathSource: ./docs/.vuepress/dist
pathTarget: ./release.7z
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: Qv2ray-Documentations.7z
path: release.7z
- name: Upload to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: release.7z
asset_name: Qv2ray-Documentations.7z
tag: doc_release
overwrite: true