Skip to content

Commit

Permalink
chore(ci): deploy on GitHub page (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
j10ccc authored Jul 17, 2023
1 parent c5e0a5a commit bc2c2fb
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy
on:
workflow_dispatch: {}
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 16

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false

- run: pnpm i

- name: Build
run: pnpm docs:build

- uses: actions/configure-pages@v2

- uses: actions/upload-pages-artifact@v1
with:
path: docs/.vitepress/dist

- name: Deploy
id: deployment
uses: actions/deploy-pages@v1
1 change: 1 addition & 0 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig } from "vitepress";

export default defineConfig({
base: "/wejh-docs/",
title: "微精弘开发文档",
description: "docs for wejh weapp development",
themeConfig: {
Expand Down

0 comments on commit bc2c2fb

Please sign in to comment.