Skip to content

Commit

Permalink
ci: add doc.ci
Browse files Browse the repository at this point in the history
  • Loading branch information
humandetail committed May 30, 2023
1 parent 46bd98b commit c2829de
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 4 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/doc.ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Simple workflow for deploying static content to GitHub Pages
name: ci

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout pnpm
uses: pnpm/action-setup@v2.0.1
with:
version: 7.13.4
- name: Build @mentions/vanilla
run: pwd && pnpm i && npm build
- name: Build docs
run: cd ./packages/docs && pnpm install && pnpm build
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: './docs/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
4 changes: 2 additions & 2 deletions packages/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "VueMentions",
description: "A vue-mentions documention",
title: "@mentions/vanilla",
description: "@mentions/vanilla documentation",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
layout: home

hero:
name: "VueMentions"
text: "A vue-mentions documention"
name: "@mentions/vanilla"
text: "@mentions/vanilla documentation"
# tagline: My great project tagline
actions:
- theme: brand
Expand Down

0 comments on commit c2829de

Please sign in to comment.