github actions and gitignore

This commit is contained in:
Vitor Mattos 2021-02-16 21:15:37 -03:00
parent 02b2e51145
commit dc907ae4be
2 changed files with 25 additions and 1 deletions

23
.github/workflows/deploy-docs.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
- name: Install and Build 🔧
run: |
cd docs
npm install
./node_modules/.bin/vuepress build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.0.0
with:
branch: gh-pages
folder: docs/.vuepress/dist

3
.gitignore vendored
View file

@ -5,4 +5,5 @@
/build/
node_modules/
/.php_cs.cache
.phpunit.result.cache
.phpunit.result.cache
/docs/.vuepress/dist