Build docs on github actions
@@ -42,7 +42,23 @@ jobs:
working-directory: frontend
- uses: netlify/actions/cli@master
with:
- args: deploy --dir=frontend/public/
+ args: deploy --dir=frontend/public
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
+
+ preview-docs:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@master
+ - run: yarn
+ working-directory: frontend
+ - run: yarn build:docz
+ working-directory: frontend
+ - uses: netlify/actions/cli@master
+ with:
+ args: deploy --dir=frontend/.docz/dist
+ env:
+ NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
+ NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_DOCS }}
