Skip to content

Commit 4d5fbab

Browse files
committed
add publish.yml to site
1 parent 19f2e4e commit 4d5fbab

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: publish
2+
3+
# Controls when the action will run.
4+
on:
5+
# Remark: uncomment one section only
6+
# Remark: Next 1 line requires manual action, Click on action tab, then publish
7+
# workflow_dispatch
8+
# Remark: Next 3 lines triggers the workflow on push events for the main branch
9+
push:
10+
branches:
11+
- main
12+
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
18+
if: github.repository_owner == 'loopandlearn'
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-python@v5
22+
with:
23+
python-version: 3.x
24+
- run: pip install -r requirements.txt
25+
- run: mkdocs build
26+
27+
- uses: JamesIves/github-pages-deploy-action@v4
28+
with:
29+
branch: gh-pages
30+
folder: site

0 commit comments

Comments
 (0)