Update workflow

This commit is contained in:
Dheepak Krishnamurthy 2021-03-24 13:05:06 -06:00
parent e90a93c303
commit c60d31ae0f

View file

@ -1,8 +1,8 @@
name: Docs name: Docs
on: on:
push: push:
branches: pull_request:
- master types: [opened, synchronize]
jobs: jobs:
docs: docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -34,3 +34,20 @@ jobs:
publish_branch: gh-pages publish_branch: gh-pages
publish_dir: ./site publish_dir: ./site
force_orphan: true force_orphan: true
- name: Deploy to Netlify
id: netlify
uses: nwtgck/actions-netlify@v1.1.13
with:
publish-dir: ./site
production-deploy: false
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-commit-comment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 5
- name: Documentation Preview
uses: ProjectPythia/actions/comment-netlify-preview-in-pr@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-url: ${{ steps.netlify.outputs.deploy-url }}