Skip to content

Commit 34043a7

Browse files
authored
edit deploy
1 parent cfc6aa6 commit 34043a7

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/blank.yml

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
name: Deploy to Github Pages
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- master
47

58
jobs:
6-
build:
7-
9+
build-and-deploy:
810
runs-on: ubuntu-latest
9-
1011
steps:
11-
- uses: actions/checkout@v1
12-
- name: Deploy to GitHub Pages - Python
13-
uses: JacksonMaxfield/github-pages-deploy-action-python@2.1.0
12+
- name: Checkout
13+
uses: actions/checkout@master
14+
15+
- name: Build and Deploy
16+
uses: JacksonMaxfield/github-pages-deploy-action-python@master
17+
env:
18+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
19+
BASE_BRANCH: master # The branch the action should deploy from.
20+
BRANCH: gh-pages # The branch the action should deploy to.
21+
FOLDER: docs/_build/html # The folder the action should deploy. This example folder is generated by Sphinx
22+
BUILD_SCRIPT: pip install .[all] && make docs-build && touch docs/_build/html/.nojekyll # The build script the action should run prior to deploying.

0 commit comments

Comments
 (0)