优化 FetchInfo.vue 和改用 Lsposed Module 仓库获取版本信息 (#49) #65
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
name: build | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
NODE_VERSION: '18' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: 'yarn' | |
cache-dependency-path: yarn.lock | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Build site | |
run: yarn build | |
- name: Upload Artefact | |
if: success() | |
uses: actions/upload-artifact@main | |
with: | |
name: dist | |
path: .vitepress/dist | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: .vitepress/dist | |
cname: HyperCeiler.sevtinge.cc # if wanna deploy to custom domain | |