OpenTelemetry Instrumentation Docs Build #658
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: OpenTelemetry Instrumentation Docs Build | |
on: | |
schedule: | |
- cron: '0 4 * * *' | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: crystallang/crystal | |
steps: | |
- uses: actions/checkout@v2 | |
- name: apt update | |
run: apt update | |
- name: Install SQLite | |
run: apt-get -qy install libsqlite3-dev | |
- name: Install dependencies | |
run: shards install | |
- name: Build docs | |
run: crystal docs | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs |