Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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 34 .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/setup-python@v1.2.0
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/github-pages-deploy-action@3.4.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: Doc/to-github
- name: Comment Deploy Preview Link
uses: thollander/actions-comment-pull-request@1.0.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: Deploy preview available at https://python.github.io/cpython/${{ github.sha }}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.