Updated the WASM wheel to version 2.5.10 #185
Workflow file for this run
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: release | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| env: | |
| PYTHON_VERSION: "3.13" | |
| jobs: | |
| build: | |
| uses: kitao/pyxel/.github/workflows/build.yml@main | |
| release: | |
| runs-on: macos-13 | |
| needs: build | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v3 | |
| - name: Download wheels | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: dist | |
| - name: Flatten wheels | |
| run: | | |
| find dist -type f -name "*.whl" -exec mv {} dist/ \; | |
| find dist -type d -empty -delete | |
| - name: Get Pyxel version | |
| run: | | |
| PYXEL_VERSION=$(echo $GITHUB_REF | sed 's/refs\/tags\/v//') | |
| echo "PYXEL_VERSION=${PYXEL_VERSION}" >> $GITHUB_ENV | |
| - name: Create release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| name: Pyxel ${{ env.PYXEL_VERSION }} | |
| tag_name: ${{ github.ref }} | |
| files: dist/* | |
| - name: Install Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Publish wheels | |
| run: | | |
| pip install twine | |
| twine upload dist/* | |
| env: | |
| TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
| TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Publish crates | |
| run: | | |
| echo -n "${{ secrets.CARGO_REGISTRY_TOKEN }}" | cargo login | |
| cd rust/pyxel-platform | |
| cargo publish --features sdl2_bundle | |
| sleep 30 | |
| cd ../pyxel-engine | |
| cargo publish --features sdl2_bundle | |
| sleep 30 | |
| cd ../pyxel-wrapper | |
| RUSTFLAGS="-C link-arg=-undefined -C link-arg=dynamic_lookup" cargo publish --features sdl2_bundle |