From 05d49188ac2aae678e87fea3d7ab00358fa0e2f2 Mon Sep 17 00:00:00 2001 From: Kamal Choudhary Date: Sat, 17 May 2025 11:14:22 -0400 Subject: [PATCH 1/3] 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/3] 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/3] 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: - '*'