Update turing-api-search-between-dates.adoc #107
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: build adocs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
adoc_build: | |
runs-on: ubuntu-latest | |
name: HTMLs and PDFs | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
# Use GitHub Actions' cache to shorten build times and decrease load on servers | |
- uses: actions/cache@v2 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Get build container | |
id: adocbuild | |
uses: avattathil/asciidoctor-action@master | |
with: | |
program: "sh ./doc.sh" | |
- name: Deploy docs to gh-pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: ./docs/ | |
- uses: helaili/jekyll-action@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
jekyll_src: "docs" | |
target_branch: "gh-pages" |