fix(app): downgrade vue #422
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 test | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
- dev | |
- 'releases/*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set Timezone | |
run: sudo timedatectl set-timezone "Asia/Shanghai" | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 10 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- run: pnpm install | |
- run: | | |
pnpm build | |
cd ./packages/cli | |
pnpm link -g | |
cpany -v | |
- name: Export CPany Page Image | |
run: cpany export ./example | |
- name: Upload CPany Page Image | |
uses: actions/upload-artifact@v4 | |
with: | |
name: screenshot | |
path: screenshot.png | |
- name: Build | |
run: cpany build example --base /CPany/ | |
env: | |
DEBUG: 'cpany:*' | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
if: github.ref == 'refs/heads/main' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist | |
fetch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set Timezone | |
run: sudo timedatectl set-timezone "Asia/Shanghai" | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Build CPany | |
run: | | |
pnpm install | |
pnpm build | |
cd ./packages/cli | |
pnpm link -g | |
cpany -v | |
- uses: actions/checkout@v4 | |
with: | |
ref: cpany | |
path: .cpany | |
- name: Fetch Data | |
run: cpany fetch ./.cpany/ --plugin codeforces hdu |