From fcb52bb050fe2c9947dd1ebd8415d481386acbbf Mon Sep 17 00:00:00 2001 From: Trevor Blades Date: Tue, 22 Mar 2022 14:12:24 -0700 Subject: [PATCH 1/2] Tweak ignore command --- netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 049d8113e..93c1071b7 100644 --- a/netlify.toml +++ b/netlify.toml @@ -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 From e4b6e4a00d793bf0d3ab6ab50c91e95dbd20bfbf Mon Sep 17 00:00:00 2001 From: Trevor Blades Date: Tue, 22 Mar 2022 14:12:28 -0700 Subject: [PATCH 2/2] Add docs publish workflow --- .github/workflows/docs-publish.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/docs-publish.yml diff --git a/.github/workflows/docs-publish.yml b/.github/workflows/docs-publish.yml new file mode 100644 index 000000000..7da79e0f5 --- /dev/null +++ b/.github/workflows/docs-publish.yml @@ -0,0 +1,15 @@ +name: Deploy docs to production + +on: + push: + branches: + - main + 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 }}