Skip to content

feat: add ci and fix link #1

feat: add ci and fix link

feat: add ci and fix link #1

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Deploy Github Actions
on:
push:
branches: [main, feature-docs]
jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: pnpm
cache-dependency-path: docs/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Deploy
run: |
cd docs
pnpm build
cd src/.vuepress/dist
# echo 'www.example.com' > CNAME
git init
git config user.email "spacemeowx2@gmail.com"
git config user.name "spacemeowx2"
git checkout -b dist
git add -A
git commit -m "deploy at `date`"
git push -f https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} dist