feat: incorporate huggingface
spaces
#31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Preview Docs | |
on: | |
pull_request: | |
branches: | |
- master | |
types: [opened, synchronize, reopened, closed] | |
paths: | |
- 'src/**/*.py' | |
- 'docs/**' | |
- '*.md' | |
jobs: | |
preview: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.2.2 | |
- name: Configure Poetry | |
run: | | |
poetry config virtualenvs.in-project true | |
- name: Set up cache | |
uses: actions/[email protected] | |
with: | |
path: .venv | |
key: venv-${{ hashFiles('**/poetry.lock') }} | |
- name: Install dependencies | |
run: | | |
poetry install | |
- uses: afc163/surge-preview@v1 | |
with: | |
surge_token: ${{ secrets.SURGE_TOKEN }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
dist: site | |
teardown: 'true' | |
build: | | |
poetry run mkdocs build |