Skip to content

Commit

Permalink
Trigger update of Zuplo docs via Vercel webhook (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntotten authored Jan 28, 2025
1 parent 11b7e96 commit d8dbcef
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This action sync docs to the zuplo docs
name: Zuplo Docs
on:
workflow_dispatch:
push:
branches:
- "main"
tags-ignore:
- "*"

jobs:
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- name: Trigger Zuplo Docs Update
run: curl ${{ secrets.VERCEL_DOCS_WEBHOOK_URL }}
14 changes: 0 additions & 14 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,20 +187,6 @@ jobs:
headers: |-
content-type: text/html
- name: Zip Docs Folder
if: github.event_name == 'workflow_dispatch'
run: zip -r docs.zip docs -x "docs/node_modules/*" "docs/dist/*"

- name: Upload Docs Zip
if: github.event_name == 'workflow_dispatch'
uses: google-github-actions/upload-cloud-storage@v2
with:
path: docs.zip
destination: cdn.zudoku.dev/release
parent: false
headers: |-
content-type: application/zip
- name: Clear CDN Cache
# Only for non-prerelease
if: github.event_name == 'workflow_dispatch'
Expand Down

0 comments on commit d8dbcef

Please sign in to comment.