Skip to content

Commit 6897201

Browse files
Fix repo location.
1 parent b8a5a43 commit 6897201

3 files changed

Lines changed: 151 additions & 1 deletion

File tree

.github/build.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
# 1. Checkout chebsite
14+
- name: Checkout chebsite
15+
uses: actions/checkout@v4
16+
with:
17+
path: chebsite
18+
19+
# 2. Checkout examples repo (read-only for BUILD.py)
20+
- name: Checkout examples
21+
uses: actions/checkout@v4
22+
with:
23+
repository: chebfun/examples
24+
path: examples
25+
token: ${{ secrets.BUILD_REPO_TOKEN }}
26+
27+
# 3. Checkout guide repo (read-only for BUILD.py)
28+
- name: Checkout guide
29+
uses: actions/checkout@v4
30+
with:
31+
repository: chebfun/guide
32+
path: guide
33+
token: ${{ secrets.BUILD_REPO_TOKEN }}
34+
35+
# 4. Checkout _build repo (where we will push)
36+
- name: Checkout _build repo
37+
uses: actions/checkout@v4
38+
with:
39+
repository: chebfun/chebfun.github.io
40+
path: chebfun.github.io
41+
token: ${{ secrets.BUILD_REPO_TOKEN }}
42+
43+
# 5. Set up Python
44+
- name: Set up Python
45+
uses: actions/setup-python@v5
46+
with:
47+
python-version: '3.10'
48+
49+
# 6. Install dependencies
50+
- name: Install Python dependencies
51+
run: |
52+
python -m venv myenv
53+
source myenv/bin/activate
54+
python -m pip install --upgrade pip
55+
pip install --upgrade wheel
56+
pip install MarkupSafe Jinja2 PyYAML Markdown python_dateutil
57+
pip install Markdown==2.6.11
58+
59+
# 7. Run BUILD.py
60+
- name: Run BUILD.py
61+
run: |
62+
cd chebsite
63+
source ../myenv/bin/activate
64+
python BUILD.py
65+
66+
# 8. Commit and push to _build repo
67+
- name: Commit and push _build
68+
run: |
69+
cd chebsite/_build
70+
git config user.name "github-actions[bot]"
71+
git config user.email "github-actions[bot]@users.noreply.github.com"
72+
git add .
73+
git commit -m "${{ github.event.head_commit.message }}" || echo "No changes to commit"
74+
git push
75+

.github/workflows/build.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
# 1. Checkout chebsite
14+
- name: Checkout chebsite
15+
uses: actions/checkout@v4
16+
with:
17+
path: chebsite
18+
19+
# 2. Checkout examples repo (read-only for BUILD.py)
20+
- name: Checkout examples
21+
uses: actions/checkout@v4
22+
with:
23+
repository: chebfun/examples
24+
path: examples
25+
token: ${{ secrets.BUILD_REPO_TOKEN }}
26+
27+
# 3. Checkout guide repo (read-only for BUILD.py)
28+
- name: Checkout guide
29+
uses: actions/checkout@v4
30+
with:
31+
repository: chebfun/guide
32+
path: guide
33+
token: ${{ secrets.BUILD_REPO_TOKEN }}
34+
35+
# 4. Checkout _build repo (where we will push)
36+
- name: Checkout chebfun.github.io
37+
uses: actions/checkout@v4
38+
with:
39+
repository: chebfun/chebfun.github.io
40+
path: chebsite/_build
41+
token: ${{ secrets.BUILD_REPO_TOKEN }}
42+
43+
# 5. Set up Python
44+
- name: Set up Python
45+
uses: actions/setup-python@v5
46+
with:
47+
python-version: '3.10'
48+
49+
# 6. Install dependencies
50+
- name: Install Python dependencies
51+
run: |
52+
python -m venv myenv
53+
source myenv/bin/activate
54+
python -m pip install --upgrade pip
55+
pip install --upgrade wheel
56+
pip install MarkupSafe Jinja2 PyYAML Markdown python_dateutil
57+
pip install Markdown==2.6.11
58+
59+
# 7. Run BUILD.py
60+
- name: Run BUILD.py
61+
run: |
62+
cd chebsite
63+
source ../myenv/bin/activate
64+
python BUILD.py
65+
66+
# 8. Commit and push to _build repo
67+
- name: Commit and push _build
68+
run: |
69+
cd chebsite/_build
70+
git config user.name "github-actions[bot]"
71+
git config user.email "github-actions[bot]@users.noreply.github.com"
72+
git add .
73+
git commit -m "${{ github.event.head_commit.message }}" || echo "No changes to commit"
74+
git push
75+

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,5 +268,5 @@ <h3></span>Contribute &raquo;<span class="glyphicon glyphicon-wrench" style='flo
268268
<script type="text/javascript" src="/js/config.js"></script>
269269
<script type="text/javascript" src="/js/jquery.flexslider-min.js"></script>
270270
</body>
271-
<!-- Compiled on Thursday, 21 August 2025 at 11:41. -->
271+
<!-- Compiled on Thursday, 21 August 2025 at 11:02. -->
272272
</html>

0 commit comments

Comments
 (0)