Skip to content

Commit f515fba

Browse files
author
messenjer
committed
feat(github-action): deploy docs to github-pages
1 parent 0111fac commit f515fba

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build and Deploy Docs to GitHub Pages
2+
on:
3+
push:
4+
paths:
5+
- 'docs/**'
6+
- '.github/workflows/docs-github-pages-deploy.yml'
7+
branches:
8+
- main
9+
jobs:
10+
build-and-deploy:
11+
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout 🛎️
15+
uses: actions/checkout@v3
16+
17+
- name: Install and build library 🔧
18+
run: |
19+
npm install
20+
npm run build
21+
22+
- name: Install documentation 🔧
23+
working-directory: ./docs
24+
run: |
25+
npm install
26+
27+
- name: Build documentation 🔧
28+
run: |
29+
npm run docs:build
30+
31+
- name: Deploy 🚀
32+
uses: JamesIves/[email protected]
33+
with:
34+
branch: gh-pages # The branch the action should deploy to.
35+
folder: ./docs/.vuepress/dist # The folder the action should deploy.

0 commit comments

Comments
 (0)