mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
a25aba26b5
* linting as a separate ci step * CI and docs improvements * fix docs preview * fix docs, benchmarks fastapi tests * fix formatting and docs build * tweak publishing docs * fix for new download-artifact action * skip check tag to check docs build * prepare for merge
35 lines
645 B
YAML
35 lines
645 B
YAML
name: Docs Preview
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
site-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: set up python
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.8
|
|
|
|
- name: install
|
|
run: make install-docs
|
|
|
|
- name: build site
|
|
run: |
|
|
make docs
|
|
zip -r site.zip site
|
|
ls -lh
|
|
|
|
- name: upload
|
|
run: >
|
|
wget
|
|
https://site-deploy-opivr5adlq-ue.a.run.app/upload/?run_id=$GITHUB_RUN_ID
|
|
-O-
|
|
-q
|
|
--content-on-error
|
|
--post-file=site.zip
|
|
env:
|
|
GITHUB_RUN_ID: ${{ github.run_id }}
|