diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml new file mode 100644 index 0000000000..a3b1682c04 --- /dev/null +++ b/.github/workflows/deploy-docs.yaml @@ -0,0 +1,21 @@ +# This workflow triggers a Vercel deploy hook which builds+deploys coder.com +# (a Next.js app), to keep coder.com/docs URLs in sync with docs/manifest.json +# +# https://vercel.com/docs/deploy-hooks#triggering-a-deploy-hook + +name: Update coder.com/docs + +on: + push: + branches: + - main + paths: + - "docs/manifest.json" + +jobs: + deploy-docs: + runs-on: ubuntu-latest + steps: + - name: Deploy docs site + run: | + curl -X POST "${{ secrets.DEPLOY_DOCS_VERCEL_WEBHOOK }}"