-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cd2faf
commit ca86889
Showing
4 changed files
with
68 additions
and
7 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
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,48 @@ | ||
name: pyauditor-docs | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
pyauditor-docs: | ||
runs-on: ubuntu-latest | ||
env: | ||
SQLX_OFFLINE: true | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Set up toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Cache dependencies | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
prefix-key: cache-dependencies-docs | ||
|
||
- name: Download wheel | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: pyauditor-wheels | ||
|
||
- name: Install pyauditor | ||
run: | | ||
pip install --upgrade pip | ||
ls | grep manylinux | grep 39 | xargs pip install | ||
- name: Build pyauditor docs | ||
run: CI_MODE=true SKIP_COMPILATION=true ./scripts/docs_pyauditor.sh | ||
|
||
- name: Deploy pyauditor docs | ||
if: github.ref == 'refs/heads/main' | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: pyauditor/docs/_build/html | ||
target-folder: pyauditor | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
clean: false |
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
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