crates: generators: python: Add future/annotations #44
This file contains hidden or 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 to GitHub Pages | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rust-src | |
| - name: Install wasm-pack | |
| run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
| - name: Build | |
| run: wasm-pack build crates/wasm --target web --out-dir ../../pkg --out-name blueberry_wasm | |
| - name: Sync parser fixtures into pkg | |
| run: ./pkg/sync_playground_fixtures.sh | |
| - name: Organize files | |
| run: | | |
| rm pkg/.gitignore | |
| - name: Deploy 🚀 | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| if: success() && github.event_name != 'pull_request' | |
| with: | |
| branch: gh-pages | |
| folder: pkg |