docs: added ci pipeline to build and deploy docs

This commit is contained in:
Antonio 2022-03-15 20:28:53 +02:00
parent 3b2a3029b4
commit 490f4eb562

23
.github/workflows/docs.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: documentation
on: [push]
jobs:
build_docs:
name: Build documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Trigger external build
env:
TOKEN: ${{ secrets.DOCS_DEPLOY_KEY }}
EVENT: build_docs
OWNER: showdownjs
REPO: showdownjs.github.io
run: |
curl -X POST \
-H "Authorization: token ${TOKEN}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${OWNER}/${REPO}/dispatches \
-d '{ "event_type": "'"${EVENT}"'", "client_payload": { "source": "showdown" } }'