build: update Dockerfile #16
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 marimo | |
| permissions: read-all | |
| env: | |
| UV_SYSTEM_PYTHON: 1 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy_app: | |
| name: Deploy app | |
| runs-on: ubuntu-latest | |
| permissions: write-all | |
| strategy: | |
| matrix: | |
| folder: | |
| - "baec_basetime_single" | |
| - "baec_basetime_multi" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Install python 3.13 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install dependencies | |
| run: | | |
| uv pip install -r requirements.txt | |
| - name: 📄 Export notebook | |
| run: | | |
| marimo export html-wasm marimo/${{ matrix.folder }}/app.py -o public --mode run | |
| - name: Publish app | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./public | |
| destination_dir: ./marimo/${{ matrix.folder }} |