Skip to content

Commit

Permalink
Start a docs production deploy when docs changes get merged (apollogr…
Browse files Browse the repository at this point in the history
…aphql#2211)

* Create docs-publish.yml

* Tweak ignore command
  • Loading branch information
trevorblades authored and jamesonwilliams committed Nov 16, 2024
1 parent 5dedadd commit 3c3176b
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 3c3176b

Please sign in to comment.