Skip to content

Commit 1a4abff

Browse files
committed
add build docs workflow
1 parent dd0cd65 commit 1a4abff

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build-docs.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and Export Shiny App
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build-docs:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.11'
19+
20+
- name: Install requirements
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r requirements.txt
24+
25+
- name: Export Shiny app
26+
run: shinylive export shiny-app docs/
27+
28+
- name: Commit and push docs
29+
run: |
30+
git config --global user.name "github-actions[bot]"
31+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
32+
git add docs/
33+
git commit -m "Update exported docs [skip ci]" || echo "No changes to commit"
34+
git push

0 commit comments

Comments
 (0)