From 05d49188ac2aae678e87fea3d7ab00358fa0e2f2 Mon Sep 17 00:00:00 2001 From: Kamal Choudhary Date: Sat, 17 May 2025 11:14:22 -0400 Subject: [PATCH 1/6] Update deploy.yml --- .github/workflows/deploy.yml | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5d787d9..7e57e86 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,40 +12,42 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout repository uses: actions/checkout@v3 + - name: Setup Python uses: actions/setup-python@v3 with: python-version: "3.10" - - name: Install the dependencies - run: | - python -m pip install -r requirements.txt - - name: Build the JupyterLite site + + - name: Install dependencies + run: python -m pip install -r requirements.txt + + - name: Build JupyterLite site run: | - # jupyter lite build --files content jupyter lite build --contents content --output-dir dist - - name: Upload (dist) + - name: Upload JupyterLite site as artifact uses: actions/upload-artifact@v3 with: - name: jupyterlite-demo dist ${{ github.run_number }} - # path: ./_output + name: jupyterlite-dist-${{ github.run_number }} path: ./dist deploy: if: github.ref == 'refs/heads/main' - needs: [build] + needs: build runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2.3.1 - - uses: actions/download-artifact@v3 + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Download build artifact + uses: actions/download-artifact@v3 with: - name: jupyterlite-demo dist ${{ github.run_number }} + name: jupyterlite-dist-${{ github.run_number }} path: ./dist - - name: Deploy + - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@4.1.3 with: branch: gh-pages From f01bbfa9e517507ccfe33ad070b09de6752ec102 Mon Sep 17 00:00:00 2001 From: Kamal Choudhary Date: Sat, 17 May 2025 11:15:22 -0400 Subject: [PATCH 2/6] Update deploy.yml --- .github/workflows/deploy.yml | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7e57e86..461f3a8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,42 +12,40 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout repository + - name: Checkout uses: actions/checkout@v3 - - name: Setup Python uses: actions/setup-python@v3 with: python-version: "3.10" - - - name: Install dependencies - run: python -m pip install -r requirements.txt - - - name: Build JupyterLite site + - name: Install the dependencies run: | + python -m pip install -r requirements.txt + - name: Build the JupyterLite site + run: | + # jupyter lite build --files content jupyter lite build --contents content --output-dir dist - - name: Upload JupyterLite site as artifact + - name: Upload (dist) uses: actions/upload-artifact@v3 with: - name: jupyterlite-dist-${{ github.run_number }} + name: jupyterlite-demo dist ${{ github.run_number }} + # path: ./_output path: ./dist deploy: if: github.ref == 'refs/heads/main' - needs: build + needs: [build] runs-on: ubuntu-latest steps: - - name: Checkout repository + - name: Checkout uses: actions/checkout@v3 - - - name: Download build artifact - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v3 with: - name: jupyterlite-dist-${{ github.run_number }} + name: jupyterlite-demo dist ${{ github.run_number }} path: ./dist - - name: Deploy to GitHub Pages + - name: Deploy uses: JamesIves/github-pages-deploy-action@4.1.3 with: branch: gh-pages From bedc0502ca727802facc9716063de0b418870491 Mon Sep 17 00:00:00 2001 From: Kamal Choudhary Date: Sat, 17 May 2025 11:17:50 -0400 Subject: [PATCH 3/6] Update deploy.yml --- .github/workflows/deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 461f3a8..1e44e90 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - develop pull_request: branches: - '*' From 8771eea6aa2fc5790fadc0869148eeb8856679f7 Mon Sep 17 00:00:00 2001 From: Kamal Choudhary Date: Sat, 17 May 2025 11:20:37 -0400 Subject: [PATCH 4/6] Update deploy.yml --- .github/workflows/deploy.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1e44e90..065100f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - develop pull_request: branches: - '*' @@ -28,9 +27,9 @@ jobs: jupyter lite build --contents content --output-dir dist - name: Upload (dist) - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v2 # Changed from v3 to v2 with: - name: jupyterlite-demo dist ${{ github.run_number }} + name: jupyterlite-demo-dist-${{ github.run_number }} # path: ./_output path: ./dist @@ -40,10 +39,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + uses: actions/checkout@v2.3.1 + - uses: actions/download-artifact@v2 # Changed from v3 to v2 with: - name: jupyterlite-demo dist ${{ github.run_number }} + name: jupyterlite-demo-dist-${{ github.run_number }} path: ./dist - name: Deploy From 9b37605e5cd3aa639171c874a2bc0ee502b620eb Mon Sep 17 00:00:00 2001 From: Kamal Choudhary Date: Sat, 17 May 2025 11:22:09 -0400 Subject: [PATCH 5/6] Update deploy.yml --- .github/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 065100f..3e5b2fd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,7 +27,7 @@ jobs: jupyter lite build --contents content --output-dir dist - name: Upload (dist) - uses: actions/upload-artifact@v2 # Changed from v3 to v2 + uses: actions/upload-artifact@v4 with: name: jupyterlite-demo-dist-${{ github.run_number }} # path: ./_output @@ -39,8 +39,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2.3.1 - - uses: actions/download-artifact@v2 # Changed from v3 to v2 + uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 with: name: jupyterlite-demo-dist-${{ github.run_number }} path: ./dist From e18776cbea4a714f6fb4a65cdcd1e144b88f13be Mon Sep 17 00:00:00 2001 From: Kamal Choudhary Date: Sat, 17 May 2025 11:29:36 -0400 Subject: [PATCH 6/6] Update deploy.yml --- .github/workflows/deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3e5b2fd..ceb516d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,6 +21,12 @@ jobs: - name: Install the dependencies run: | python -m pip install -r requirements.txt + - name: Install micromamba + run: | + curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba + sudo mv bin/micromamba /usr/local/bin/micromamba + micromamba --version + - name: Build the JupyterLite site run: | # jupyter lite build --files content