Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f12d58d

Browse files
authored
Create deploy-previews.yml
1 parent 3e4498d commit f12d58d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/deploy-previews.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Generate Deploy Preview
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Setup Python
13+
uses: actions/[email protected]
14+
with:
15+
python-version: 3.7
16+
- name: Build documentation
17+
run: |
18+
make venv
19+
make html
20+
working-directory: Doc
21+
- name: Deploy to GitHub Pages
22+
uses: JamesIves/[email protected]
23+
with:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
BRANCH: gh-pages
26+
FOLDER: Doc/build/build
27+
TARGET_FOLDER: ${{ GITHUB_SHA }}

0 commit comments

Comments
 (0)