-
Notifications
You must be signed in to change notification settings - Fork 141
62 lines (49 loc) · 1.58 KB
/
webdeploy.yml
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
name: Update server side generated pages
on:
push:
branches:
- stable
defaults:
run:
shell: bash -l {0}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !(github.ref == 'refs/heads/master') }}
jobs:
update-ssg:
name: Update server side generated pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure git to use https
run: git config --global hub.protocol https
- name: Checkout the branch
run: |
git checkout stable
git checkout -B stable-ssg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install solara
run: |
pip install -e ."[all]" -e packages/solara-server"[starlette]" -e packages/solara-meta"[documentation]" -e packages/solara-enterprise"[all]" playwright==1.39.0
- name: Install Playwright
run: |
playwright install chromium
- name: Generate pages
run: solara ssg solara.website.pages
- name: Commit reference images
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add -f solara/website/build
git commit -m "Update SSG pages"
git push origin stable-ssg -f
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}