Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/deploy-previews.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Generate Deploy Preview

on:
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.7
- name: Build documentation
run: |
make venv
make html
mkdir to-github
mv build/html to-github/${{ github.sha }}
touch to-github/.nojekyll
working-directory: Doc
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: Doc/to-github
- name: Comment Deploy Preview Link
uses: thollander/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: Deploy preview available at https://python.github.io/cpython/${{ github.sha }}