mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
docs: added ci pipeline to build and deploy docs
This commit is contained in:
parent
3b2a3029b4
commit
490f4eb562
23
.github/workflows/docs.yml
vendored
Normal file
23
.github/workflows/docs.yml
vendored
Normal 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" } }'
|
Loading…
Reference in New Issue
Block a user