Skip to content

Commit

Permalink
🐎 ci(docs.yml): 发布githubpage
Browse files Browse the repository at this point in the history
  • Loading branch information
marherb committed May 5, 2024
1 parent 6b4bd89 commit 6572b9a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy Docs

on:
push:
branches: [ main ]

jobs:
build-and-publish:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
scope: '@marherb-work'

- name: Install dependencies
run: yarn install

- name: Build package
run: yarn cosmos-export

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./cosmos-export

0 comments on commit 6572b9a

Please sign in to comment.