From 343978870774f81ecaa06d7f253020265f601fd2 Mon Sep 17 00:00:00 2001 From: Yuren Hao <97327730+YurenHao0426@users.noreply.github.com> Date: Wed, 6 Aug 2025 01:39:08 -0700 Subject: feat: scaffold prereq graph project --- .github/workflows/update-and-deploy.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/update-and-deploy.yml (limited to '.github/workflows/update-and-deploy.yml') diff --git a/.github/workflows/update-and-deploy.yml b/.github/workflows/update-and-deploy.yml new file mode 100644 index 0000000..0e29cad --- /dev/null +++ b/.github/workflows/update-and-deploy.yml @@ -0,0 +1,32 @@ +name: grab-data-build-deploy + +on: + schedule: + - cron: "0 6 * * *" + push: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + - run: npm ci + - name: Scrape UIUC catalog + run: npm run scrape + - name: Commit data + run: | + git config user.name "gh-bot" + git config user.email "bot@users.noreply.github.com" + git add data || true + git diff --cached --quiet || git commit -m "auto: update catalog" + - run: git push + - run: npm run build + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist -- cgit v1.2.3 From caa18e81e8eb03fb03a82d0d3526994c9ba41ac2 Mon Sep 17 00:00:00 2001 From: Yuren Hao <97327730+YurenHao0426@users.noreply.github.com> Date: Wed, 6 Aug 2025 02:00:55 -0700 Subject: fix: force IPv4 for scraper --- .github/workflows/update-and-deploy.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.github/workflows/update-and-deploy.yml') diff --git a/.github/workflows/update-and-deploy.yml b/.github/workflows/update-and-deploy.yml index 0e29cad..fb034a6 100644 --- a/.github/workflows/update-and-deploy.yml +++ b/.github/workflows/update-and-deploy.yml @@ -16,6 +16,8 @@ jobs: node-version: 18 - run: npm ci - name: Scrape UIUC catalog + env: + NODE_OPTIONS: --dns-result-order=ipv4first run: npm run scrape - name: Commit data run: | -- cgit v1.2.3