-
-
Notifications
You must be signed in to change notification settings - Fork 49
35 lines (29 loc) · 1006 Bytes
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Publish docs
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Build
uses: andstor/jsdoc-action@v1
with:
config_file: .jsdoc.rc
front_page: README.md
- name: Find and Replace
uses: jacobtomlinson/[email protected]
with:
# The regular expression (or fixed string) we want to replace
find: '<!--SPONSOR-->'
# The new string to replace with
replace: '<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CEAIC5QJ&placement=arjunkomathgithubio" id="_carbonads_js"></script><link type="text/css" rel="stylesheet" href="./custom.css">'
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs