diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 04c65b072..9da8cd901 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -731,6 +731,7 @@ jobs: runs-on: ubuntu-latest permissions: id-token: write # this permission is mandatory for trusted publishing + contents: write steps: - uses: actions/checkout@v6 @@ -765,6 +766,21 @@ jobs: - name: Test import solara-enterprise run: python -c "import solara_enterprise" + - name: Publish wheels to GitHub Release (vue3-dev) + if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository + env: + GH_TOKEN: ${{ github.token }} + run: | + tag="vue3-dev" + gh release view "$tag" --repo "${{ github.repository }}" >/dev/null 2>&1 || gh release create "$tag" --repo "${{ github.repository }}" --title "$tag" --notes "Auto-updated Vue 3 dev builds" --prerelease --target "${{ github.sha }}" + gh release upload "$tag" \ + dist/*.whl \ + packages/solara-meta/dist/*.whl \ + packages/solara-server/dist/*.whl \ + packages/pytest-ipywidgets/dist/*.whl \ + --repo "${{ github.repository }}" \ + --clobber + - name: Publish solara-meta to PyPI if: startsWith(github.event.ref, 'refs/tags/v') env: diff --git a/solara/server/static/main-vuetify.js b/solara/server/static/main-vuetify.js index d4bce7148..4ee292be2 100644 --- a/solara/server/static/main-vuetify.js +++ b/solara/server/static/main-vuetify.js @@ -115,6 +115,9 @@ async function solaraInit(mountId, appName) { console.log('solara init', mountId, appName); define("vue", [], () => Vue); define("vuetify", [], () => Vuetify); + if (typeof vuetifyPlugin !== "undefined") { + define("solara-vuetify-plugin", [], () => ({ vuetifyPlugin })); + } cookies = getCookiesMap(document.cookie); const searchParams = new URLSearchParams(window.location.search); let kernelId = searchParams.get('kernelid') || generateUuid()