Bump wgpu from 22.0.0 to 22.1.0 #145
Workflow file for this run
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 | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
cache: "pip" | |
cache-dependency-path: "**/requirements*.txt" | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: "gh-pages-rust" | |
- name: Build GitHub Pages | |
working-directory: crates/wgpy_pyo3 | |
run: | | |
rustup update | |
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 | |
- name: Deploy GitHub Pages | |
if: ${{ github.event_name == 'push' }} | |
working-directory: crates/wgpy_pyo3 | |
run: | | |
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 |