Skip to content

ci: ✨ update node version #3

ci: ✨ update node version

ci: ✨ update node version #3

Workflow file for this run

on:
push:
branches:
- vue-press
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- name: Install Node.js 🔧
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install pnpm 🔺
uses: pnpm/action-setup@v4
- name: Install And Build 🛎️
run: |
pnpm install && pnpm build
- name: Add Domain 🛎️
run: cd public && echo 'blog.abplan.top' > CNAME
# - name: Install SSH Client
# uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.DEPLOY_KEY }}
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: main
folder: public
clean: true