Skip to content

Commit 2e18eb2

Browse files
authored
Merge pull request #9 from PlasmoGenEpi/revert-4-update_pmo_app
Revert "Add build files"
2 parents 4ed10ab + ecff1cb commit 2e18eb2

File tree

71 files changed

+78
-11668
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+78
-11668
lines changed

.github/workflows/deploy.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch: # Allow manual triggering
8+
9+
jobs:
10+
build-and-deploy:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: recursive
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: '3.11'
26+
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install jinja2
31+
32+
- name: Build site
33+
run: |
34+
python build_site.py
35+
36+
- name: Commit and push built files
37+
if: github.ref == 'refs/heads/main'
38+
run: |
39+
git config --local user.email "[email protected]"
40+
git config --local user.name "GitHub Action"
41+
git add docs/
42+
git diff --staged --quiet || git commit -m "Build site from submodule [skip ci]"
43+
git push
44+

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Build artifacts - these are generated from source files during build
2+
# These will be regenerated by GitHub Actions on each deployment
3+
docs/app/
4+
docs/site-packages/
5+
docs/_setup_pmotools.py
6+
docs/index.html
7+
8+
# Keep docs/assets/ committed (contains wheel file needed for build)
9+
10+
# Python
11+
__pycache__/
12+
*.py[cod]
13+
*$py.class
14+
*.so
15+
.Python
16+
env/
17+
venv/
18+
ENV/
19+
.venv
20+
21+
# IDE
22+
.vscode/
23+
.idea/
24+
*.swp
25+
*.swo
26+
*~
27+
28+
# OS
29+
.DS_Store
30+
Thumbs.db
31+
32+
# Local test files
33+
*.log
34+

docs/app/PMO_Builder.py

Lines changed: 0 additions & 60 deletions
This file was deleted.

docs/app/_setup_pmotools.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)