mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
34 lines
789 B
YAML
34 lines
789 B
YAML
name: Docs Preview Upload
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: [docs-build]
|
|
types: [completed]
|
|
|
|
jobs:
|
|
docs-upload:
|
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v1
|
|
with:
|
|
python-version: '3.8'
|
|
|
|
- name: get docs site
|
|
uses: actions/download-artifact@v2
|
|
with:
|
|
name: docs
|
|
path: site
|
|
|
|
- run: pip install smokeshow
|
|
|
|
- run: smokeshow upload site
|
|
env:
|
|
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Docs Preview
|
|
SMOKESHOW_GITHUB_CONTEXT: docs
|
|
SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|