-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 892 Bytes
/
deploy.yml
File metadata and controls
35 lines (29 loc) · 892 Bytes
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
name: Build and deploy
on:
push:
branches: [main]
workflow_dispatch:
workflow_call:
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: astral-sh/setup-uv@v4
- run: uv python install 3.13
- name: Install Python deps
run: uv sync
- name: Export notebooks
env:
OSO_API_KEY: ${{ secrets.OSO_API_KEY }}
run: uv run python scripts/export_notebooks.py
- name: Push to deploy branch
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add --force app/public/notebooks/
git checkout -B deploy
git commit -m "chore: deploy with exported notebooks" --allow-empty
git push origin deploy --force