Merge pull request #101 from supabase-community/add-docs #211
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy Documentation | |
on: | |
push: | |
branches: | |
- master | |
- release/* # Default release branch | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: "true" | |
persist-credentials: false | |
- uses: nikeee/docfx-action@v1.0.0 | |
name: Build Documentation | |
with: | |
args: .documentation/docfx.json | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@3.7.1 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: .documentation/_site # The folder the action should deploy. | |
CLEAN: true # Automatically remove deleted files from the deploy branch |