Skip to content

build: 升级到 node.js 18.16 & vitepress 1.0.0-rc.44 #84

build: 升级到 node.js 18.16 & vitepress 1.0.0-rc.44

build: 升级到 node.js 18.16 & vitepress 1.0.0-rc.44 #84

Workflow file for this run

name: Deploy
on:
workflow_dispatch: {}
push:
branches:
- main
- draft/*
- feature/*
- bugfix/*
- build/*
env:
URL_BASE: ${{ vars.URL_BASE }}
permissions:
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- run: yarn install --frozen-lockfile
- name: Build
run:
yarn build
- uses: actions/configure-pages@v2
- uses: actions/upload-pages-artifact@v1
with:
path: .vitepress/dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1