👷 Github pages CI

This commit is contained in:
trickypr 2021-09-24 15:57:58 +10:00
parent e90ac78d6e
commit 69f12f2e95
3 changed files with 28 additions and 0 deletions

25
.github/workflows/docs.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Enforce code style
on:
push:
paths:
- 'docs/**'
workflow_dispatch:
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages # The branch the action should deploy to.
folder: site # The folder the action should deploy.

2
.gitignore vendored
View file

@ -104,3 +104,5 @@ dist
.tern-port
testing/
site/

View file

@ -3,6 +3,7 @@ node_modules/
src/
!template/src/
docs/
site/
.prettierrc.json
melon.json