-
Notifications
You must be signed in to change notification settings - Fork 16
47 lines (46 loc) · 1.29 KB
/
publish-website.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
on:
push:
branches:
- main
- release-pages
release:
types: [published, edited, deleted, unpublished]
permissions:
contents: read
pages: write
id-token: write
jobs:
feishu-pages:
name: Publish Website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: dist/.cache
key: cache-dist
- name: Exporting
env:
FEISHU_APP_ID: ${{ secrets.FEISHU_APP_ID }}
FEISHU_APP_SECRET: ${{ secrets.FEISHU_APP_SECRET }}
FEISHU_SPACE_ID: '7273324757679325186'
OUTPUT_DIR: ./dist
BASE_URL: https://longbridgeapp.github.io/feishu-pages/
uses: longbridgeapp/feishu-pages@main
- name: Build Website
run: |
cp -r dist/docs/* website/docs/
cp dist/docs.json website/
yarn
yarn workspace website generate-releases
yarn workspace website build
yarn autocorrect --fix website/
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './website/.vitepress/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2