chore: remove Compare.vue from global #178
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 | |
tags-ignore: | |
- '**' | |
paths-ignore: | |
- 'README.md' | |
- 'LICENSE' | |
- '.vscode/**' | |
- '**/.gitignore' | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
# manual trigger | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: pages | |
cancel-in-progress: false | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
name: build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
with: | |
fetch-depth: 0 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@main | |
with: | |
node-version: 22 | |
cache: pnpm | |
- name: Setup Pages | |
uses: actions/configure-pages@main | |
- name: Install Deps | |
run: | | |
git config --global --add safe.directory '*' | |
pnpm i | |
- name: Build | |
run: | | |
pnpm build | |
touch .vitepress/dist/.nojekyll | |
- name: Upload Page Artifact | |
uses: actions/upload-pages-artifact@main | |
with: | |
path: .vitepress/dist | |
Deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
needs: build | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name != 'pull_request' }} # Skip deploy if triggered by PR | |
name: deploy | |
steps: | |
- id: deployment | |
uses: actions/deploy-pages@main |