Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
18bb586
Initial plan
Copilot Sep 9, 2025
a756d9d
Add node_modules and package-lock.json to .gitignore
Copilot Sep 9, 2025
9e45559
Replace nwtgck/actions-netlify@v3 with netlify-cli in CI workflow
Copilot Sep 9, 2025
1b82b7d
Update collab.yml workflow to use netlify-cli for consistency
Copilot Sep 9, 2025
c599088
Remove Netlify preview deployment from collab.yml workflow
Copilot Sep 9, 2025
b5b588e
Fix npm command not found error by installing Node.js via conda
Copilot Sep 9, 2025
3d779d6
Merge branch 'main' into copilot/adjust-ci-to-use-netlify-cli
mmcky Sep 9, 2025
eab5331
Use apt to install Node.js and npm instead of conda-forge
Copilot Sep 9, 2025
e849ac8
Fix npm global install permissions by adding sudo to netlify-cli inst…
Copilot Sep 9, 2025
3c82602
Use Netlify's default deploy-preview URL structure by removing custom…
Copilot Sep 9, 2025
0d40ee5
Add direct page preview functionality to Netlify deployments
Copilot Sep 9, 2025
c2d6079
Add automatic PR comment posting for preview links
Copilot Sep 9, 2025
31dfce9
Fix Netlify preview URLs by using actual deploy_url from JSON response
Copilot Sep 10, 2025
ac4de70
Fix duplicate PR comments by updating existing Netlify preview commen…
Copilot Sep 10, 2025
b75a64d
Fix PR preview URLs to use deploy-preview format by adding alias para…
Copilot Sep 10, 2025
a9c273b
Revert to creating new PR comments per commit instead of updating exi…
Copilot Sep 10, 2025
f9d666f
tst: add test change to aiyagari
mmcky Sep 10, 2025
8551d26
Fix git diff revision range error by adding fetch-depth: 0 to checkou…
Copilot Sep 10, 2025
c375d02
tst: another change
mmcky Sep 10, 2025
b9dce47
Merge branch 'copilot/adjust-ci-to-use-netlify-cli' of https://github…
mmcky Sep 10, 2025
f46f0c9
Make PR comment format more compact per feedback
Copilot Sep 10, 2025
6980883
tst: revert test changes
mmcky Sep 10, 2025
4a05647
Fix false positive change detection for lecture files
Copilot Sep 10, 2025
f0b3207
Fix false positive change detection and duplicate PR comments issues
Copilot Sep 10, 2025
b5dedf7
Revert unintentional changes to lectures/mle.md file
Copilot Sep 10, 2025
a2c83f4
Revert modifications to lectures/mle.md from commit b5dedf7
Copilot Sep 10, 2025
2285e16
Merge branch 'main' into copilot/adjust-ci-to-use-netlify-cli
mmcky Sep 10, 2025
289bdd4
Fix commit SHA mismatch in Netlify PR comments by using pull_request.…
Copilot Sep 10, 2025
ba28d05
Merge branch 'main' into copilot/adjust-ci-to-use-netlify-cli
mmcky Sep 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 26 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,33 @@ jobs:
with:
name: execution-reports
path: _build/html/reports
- name: Install Node.js and Netlify CLI
shell: bash -l {0}
run: |
conda install -c conda-forge nodejs npm -y
npm install -g netlify-cli
- name: Preview Deploy to Netlify
uses: nwtgck/actions-netlify@v3
with:
publish-dir: '_build/html/'
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Preview Deploy from GitHub Actions"
shell: bash -l {0}
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
netlify deploy \
--dir _build/html/ \
--site ${{ secrets.NETLIFY_SITE_ID }} \
--auth ${{ secrets.NETLIFY_AUTH_TOKEN }} \
--alias pr-${{ github.event.pull_request.number }} \
--context deploy-preview \
--message "Preview Deploy from GitHub Actions PR #${{ github.event.pull_request.number }} (commit: ${{ github.sha }})" \
--json
else
netlify deploy \
--dir _build/html/ \
--site ${{ secrets.NETLIFY_SITE_ID }} \
--auth ${{ secrets.NETLIFY_AUTH_TOKEN }} \
--alias manual-${{ github.run_id }} \
--context dev \
--message "Manual Deploy from GitHub Actions (commit: ${{ github.sha }})" \
--json
fi
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
10 changes: 0 additions & 10 deletions .github/workflows/collab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,3 @@ jobs:
title: "Weekly Colab Execution Check Failed - ${{ github.run_id }}"
content-filepath: execution-failure-report.md
labels: execution-failure, automated-issue, colab
- name: Preview Deploy to Netlify
uses: nwtgck/actions-netlify@v3
with:
publish-dir: '_build/html/'
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Preview Deploy from GitHub Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
_build/
lectures/_build/
.ipynb_checkpoints/
.virtual_documents/
.virtual_documents/
node_modules/
package-lock.json
Loading