Skip to content

Commit 20f1c75

Browse files
deploy only on main branch
1 parent 7c9740f commit 20f1c75

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: test
2+
on:
3+
push:
4+
branches:
5+
- 'main' # matches main branch
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- uses: actions/setup-python@v4
15+
with:
16+
python-version: '3.x'
17+
cache: 'pip'
18+
- run: pip install -r .acimov/requirements.txt
19+
- run: python .acimov/publish.py
20+
- uses: peaceiris/actions-gh-pages@v4
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
publish_dir: ./public
24+
publish_branch: documentation

.github/workflows/test.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,3 @@ jobs:
1818
cache: 'pip'
1919
- run: pip install -r .acimov/requirements.txt
2020
- run: python .acimov/publish.py
21-
- uses: peaceiris/actions-gh-pages@v4
22-
with:
23-
github_token: ${{ secrets.GITHUB_TOKEN }}
24-
publish_dir: ./public
25-
publish_branch: documentation

0 commit comments

Comments
 (0)