v0.0.4rc19 #26
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 to PyPI | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| build-js: | |
| name: Build JavaScript | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Build production bundle | |
| run: bun run build | |
| - name: Upload JS bundle | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: js-bundle | |
| path: hiplot/static/built/ | |
| retention-days: 1 | |
| publish: | |
| name: Publish to PyPI | |
| needs: build-js | |
| runs-on: ubuntu-latest | |
| environment: pypi | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download JS bundle | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: js-bundle | |
| path: hiplot/static/built/ | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Set up Python | |
| run: uv python install 3.12 | |
| - name: Build package | |
| run: uv build | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 |