diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2bf2593 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + - name: Use Node.js 10.x + uses: actions/setup-node@v1 + with: + node-version: 10.x + - name: Build Docs + run: cd docs + - name: Install Dependencies + run: yarn install + - name: Build + run: yarn build + - name: Upload to GitHub Pages + if: github.ref == 'refs/heads/master' + uses: peaceiris/actions-gh-pages@v2.5.0 + env: + GITHUB_TOKEN: ${{ secrets.GH_PAT }} + PUBLISH_BRANCH: gh-pages + PUBLISH_DIR: ./build + with: + emptyCommits: false + keepFiles: false \ No newline at end of file