Skip to content

chore: setting git pages deploy #4

chore: setting git pages deploy

chore: setting git pages deploy #4

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [dev-jzl]
workflow_dispatch:
# 允许 job 克隆 repo 并创建一个 page deployment
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install dependencies
run: yarn
- name: Build your project
run: yarn run docs:build
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: github-pages
path: docs-dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4