Merge pull request #330 from arjunkomath/dependabot/npm_and_yarn/nock… #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |