-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update latest dev docs on push to main
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Deploy docs | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
docs: | ||
# Create latest docs | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # to push to the gh-pages branch | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # needed to get the gh-pages branch | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.8" | ||
- name: Install dependencies and Studio | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install wheel | ||
pip install -r docs/requirements.txt -e . | ||
- name: Setup doc deploy | ||
run: | | ||
git config user.name 'github-actions[bot]' | ||
git config user.email 'github-actions[bot]@users.noreply.github.com' | ||
- name: Deploy docs with mike 🚀 | ||
run: | | ||
mike deploy --push --update-aliases dev latest |