Skip to content

Commit

Permalink
Start a docs production deploy when docs changes get merged (#2211)
Browse files Browse the repository at this point in the history
* Create docs-publish.yml

* Tweak ignore command
  • Loading branch information
trevorblades authored Mar 23, 2022
1 parent a5f6f5d commit b4f58e2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/docs-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Deploy docs to production

on:
push:
branches:
- main
- release/1.0
paths:
- docs/**

jobs:
publish:
uses: apollographql/docs/.github/workflows/publish.yml@main
secrets:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

[context.deploy-preview.build]
base = "docs"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ."
ignore = "git diff --quiet HEAD^ HEAD ."
command = """\
cd ../
rm -rf monodocs
Expand Down

0 comments on commit b4f58e2

Please sign in to comment.