Build and publish marimo notebook #1
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 notebooks to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the codebase | |
| uses: actions/checkout@v5.0.0 | |
| - name: Setup pages | |
| uses: actions/configure-pages@v5.0.0 | |
| - name: Install just | |
| uses: daniel-mizsak/workflows/.github/actions/setup-just@v1 | |
| - name: Build notebooks | |
| run: | | |
| just install | |
| just build-notebooks | |
| - name: Upload pages artifact | |
| uses: actions/upload-pages-artifact@v4.0.0 | |
| with: | |
| path: docs/00_Bevezetes_es_kurzusinformaciok | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4.0.5 |