-
Notifications
You must be signed in to change notification settings - Fork 36
108 lines (100 loc) · 3.88 KB
/
release.yml
File metadata and controls
108 lines (100 loc) · 3.88 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: Release workflow
on:
push:
branches:
- main
jobs:
run-notebooks:
name: Cookbook notebooks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: true
- uses: isbang/compose-action@4894d2492015c1774ee5a13a95b1072093087ec3 # v2.5.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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: isbang/compose-action@4894d2492015c1774ee5a13a95b1072093087ec3 # v2.5.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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: isbang/compose-action@4894d2492015c1774ee5a13a95b1072093087ec3 # v2.5.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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: isbang/compose-action@4894d2492015c1774ee5a13a95b1072093087ec3 # v2.5.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-ollama:
name: Quickstart self-hosted model (Ollama)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Docker Compose pull
shell: bash
run: |
cd ./dial-docker-compose/ci/ollama
docker compose pull --quiet
- name: Docker Compose up
shell: bash
run: |
cd ./dial-docker-compose/ci/ollama
docker compose up --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-ollama
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: 22
cache: npm
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.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
env:
BASE_URL: ${{ vars.BASE_URL }}
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
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