Skip to content

chore: setting git pages deploy #10

chore: setting git pages deploy

chore: setting git pages deploy #10

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [dev-jzl]
workflow_dispatch:
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
- name: Remove ~demos
run: rm -rf ./docs-dist/~demos
- name: Show build output directory
run: ls -la ./docs-dist
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: github-pages
path: ./docs-dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4