Spaces:
Sleeping

dn commited on
Commit
cbe7012
·
1 Parent(s): 6e535ba

remove deploy.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy.yml +0 -74
.github/workflows/deploy.yml DELETED
@@ -1,74 +0,0 @@
1
- # This workflow builds and deploys marimo notebooks to GitHub Pages
2
- # It runs automatically after CI passes on the main branch or can be triggered manually
3
-
4
- name: Deploy to GitHub Pages
5
-
6
- # Defines when the workflow will run
7
- on:
8
- workflow_run:
9
- workflows: ['CI'] # Only run after the CI workflow completes
10
- branches: ['main'] # Only on the main branch
11
- types:
12
- - completed # Trigger when CI completes (success or failure)
13
- workflow_dispatch: # Allow manual triggering from the GitHub UI
14
-
15
- # Concurrency settings to manage multiple workflow runs
16
- concurrency:
17
- group: 'pages' # Only one workflow in the 'pages' group can run at a time
18
- cancel-in-progress: false # Don't cancel in-progress runs when a new one is triggered
19
-
20
- # Environment variables used by the workflow
21
- jobs:
22
- # The build job exports marimo notebooks to static HTML/WebAssembly
23
- build:
24
- # Only run if the triggering CI workflow completed successfully
25
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
26
- runs-on: ubuntu-latest # Use the latest Ubuntu runner
27
- steps:
28
- # Check out the repository code
29
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
30
-
31
- # Install uv package manager for faster Python package installation
32
- - name: 🚀 Install uv
33
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
34
-
35
- - name: 📦 Install dependencies and project
36
- run: |
37
- uv sync # create venv, install all deps
38
- uv pip install -e . # install this project (src) in editable mode
39
-
40
- - name: 🛠️ Export notebooks
41
- run: |
42
- # todo: Ultimately this function should not be part of this repo
43
- # It should very much be an action such that other repos
44
- # can use it without forking or copying it
45
- # No, it should not be an action. As otherwise can't run before push
46
- uv run .github/scripts/build.py # This script exports all notebooks to the _site directory
47
- tree _site # Display the exported files
48
-
49
- # Upload the generated site as an artifact for the deploy job
50
- - name: 📤 Upload artifact
51
- uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4
52
- with:
53
- path: _site # Directory containing the built site
54
-
55
- # The deploy job publishes the built site to GitHub Pages
56
- deploy:
57
- needs: build # This job depends on the build job completing successfully
58
-
59
- # Required permissions for the GitHub Pages deployment
60
- permissions:
61
- pages: write # Permission to deploy to Pages
62
- id-token: write # Permission to verify the deployment
63
-
64
- # Configure the deployment environment
65
- environment:
66
- name: github-pages # Deploy to the github-pages environment
67
- url: ${{ steps.deployment.outputs.page_url }} # Use the URL from the deployment step
68
-
69
- runs-on: ubuntu-latest # Use the latest Ubuntu runner
70
- steps:
71
- # Deploy the site to GitHub Pages using the official action
72
- - name: 🚀 Deploy to GitHub Pages
73
- id: deployment # ID used to reference this step's outputs
74
- uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4 # GitHub's official Pages deployment action