From dc907ae4be358ac7e31337e7b2e57fa20a7fe507 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 16 Feb 2021 21:15:37 -0300 Subject: [PATCH] github actions and gitignore --- .github/workflows/deploy-docs.yml | 23 +++++++++++++++++++++++ .gitignore | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy-docs.yml diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 000000000..fa373816e --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore index f6eaf5b68..f726ea77d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ /build/ node_modules/ /.php_cs.cache -.phpunit.result.cache \ No newline at end of file +.phpunit.result.cache +/docs/.vuepress/dist \ No newline at end of file