Skip to content

Create deploy-previews.yml #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Mar 15, 2020
Merged
33 changes: 33 additions & 0 deletions .github/workflows/deploy-previews.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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 }}
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://epicfaace.github.io/cpython/${{ github.sha }}