Skip to content

Commit c1ce565

Browse files
authored
Merge pull request #6 from epicfaace/epicfaace-patch-1
Create deploy-previews.yml
2 parents 3e4498d + c16f0dc commit c1ce565

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/deploy-previews.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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/setup-python@v1.2.0
14+
with:
15+
python-version: 3.7
16+
- name: Build documentation
17+
run: |
18+
make venv
19+
make html
20+
mkdir to-github
21+
mv build/html to-github/${{ github.sha }}
22+
working-directory: Doc
23+
- name: Deploy to GitHub Pages
24+
uses: JamesIves/github-pages-deploy-action@3.4.1
25+
with:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
BRANCH: gh-pages
28+
FOLDER: Doc/to-github
29+
- name: Comment Deploy Preview Link
30+
uses: thollander/actions-comment-pull-request@1.0.0
31+
with:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
message: Deploy preview available at https://epicfaace.github.io/cpython/${{ github.sha }}

0 commit comments

Comments
 (0)