Update codecov.yml #11
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: Deploy | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
cache: "pip" | |
cache-dependency-path: "**/requirements*.txt" | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: "gh-pages-rust" | |
- name: Deploy GitHub Pages | |
working-directory: crates/wgpy_pyo3 | |
run: | | |
sudo apt install pandoc -y | |
pip install -r requirements-dev.txt | |
maturin build --out dist --find-interpreter | |
pip install webgpupy --find-links dist --force-reinstall | |
sphinx-build -b html docs/source/ docs/build/html | |
git worktree add gh-pages | |
git config user.name "Deploy from CI" | |
git config user.email "" | |
cd gh-pages | |
# Delete the ref to avoid keeping history. | |
git update-ref -d refs/heads/gh-pages | |
rm -rf * | |
mv ../docs/build/html/* . | |
mv ../docs/build/html/.[A-Za-z0-9]* . | |
git add . | |
git commit -m "Deploy $GITHUB_SHA to gh-pages" | |
git push --force --set-upstream origin gh-pages |