docs review (#205) #94
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: Release workflow | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
run-notebooks: | |
name: Cookbook notebooks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
submodules: true | |
- uses: isbang/compose-action@802a148945af6399a338c7906c267331b39a71af # v2.0.0 | |
with: | |
cwd: "./dial-cookbook/ci" | |
up-flags: "--abort-on-container-exit --exit-code-from test --timeout 300" | |
run-quickstart-model: | |
name: Quickstart model | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: isbang/compose-action@802a148945af6399a338c7906c267331b39a71af # v2.0.0 | |
name: Run quickstart model example | |
with: | |
cwd: "./dial-docker-compose/ci/model" | |
up-flags: "--abort-on-container-exit --exit-code-from test --timeout 300" | |
run-quickstart-application: | |
name: Quickstart application | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: isbang/compose-action@802a148945af6399a338c7906c267331b39a71af # v2.0.0 | |
with: | |
cwd: "./dial-docker-compose/ci/application" | |
up-flags: "--abort-on-container-exit --exit-code-from test --timeout 300" | |
run-quickstart-addon: | |
name: Quickstart addon | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: isbang/compose-action@802a148945af6399a338c7906c267331b39a71af # v2.0.0 | |
with: | |
cwd: "./dial-docker-compose/ci/addon" | |
up-flags: "--abort-on-container-exit --exit-code-from test --timeout 300" | |
run-quickstart-self-hosted-model: | |
name: Quickstart self-hosted model | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: isbang/compose-action@802a148945af6399a338c7906c267331b39a71af # v2.0.0 | |
with: | |
cwd: "./dial-docker-compose/ci/ollama" | |
up-flags: "--abort-on-container-exit --exit-code-from test --timeout 300" | |
build-and-deploy: | |
needs: | |
- run-notebooks | |
- run-quickstart-model | |
- run-quickstart-application | |
- run-quickstart-addon | |
- run-quickstart-self-hosted-model | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: 18 | |
cache: npm | |
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 | |
with: | |
python-version: "3.11" | |
- name: Install npm dependencies | |
run: npm ci | |
- name: Install docusaurus | |
run: npm install --global docusaurus-init | |
- name: Install quarto | |
run: pip install "quarto-cli>=1.4,<2.0" | |
- name: Build website | |
run: npm run build | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.ACTIONS_BOT_TOKEN }} | |
# Build output to publish to the `gh-pages` branch: | |
publish_dir: ./build | |
# The following lines assign commit authorship to the official | |
# GH-Actions bot for deploys to `gh-pages` branch: | |
# https://github.com/actions/checkout/issues/13#issuecomment-724415212 | |
# The GH actions bot is used by default if you didn't specify the two fields. | |
# You can swap them out with your own user credentials. | |
user_name: ai-dial-actions | |
user_email: 149404362+ai-dial-actions@users.noreply.github.com |