Spaces:
Running
Running
File size: 878 Bytes
a323dd9 4cb2acb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
name: Deploy
on:
push:
branches:
- main
permissions:
contents: write
id-token: write
jobs:
documentation:
name: update documentations on gitHub pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- run: |
pip install --upgrade pip
pip install .[docs]
- run: mkdocs gh-deploy --force
sync-to-hub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Push to hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: git push https://HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/wandb/guardrails-genie main |