Release feishu-pages@v0.6.11 #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |