summaryrefslogtreecommitdiff
path: root/.github/workflows/update-and-deploy.yml
diff options
context:
space:
mode:
authorblackhao <13851610112@163.com>2025-08-22 02:51:50 -0500
committerblackhao <13851610112@163.com>2025-08-22 02:51:50 -0500
commit4aab4087dc97906d0b9890035401175cdaab32d4 (patch)
tree4e2e9d88a711ec5b1cfa02e8ac72a55183b99123 /.github/workflows/update-and-deploy.yml
parentafa8f50d1d21c721dabcb31ad244610946ab65a3 (diff)
2.0
Diffstat (limited to '.github/workflows/update-and-deploy.yml')
-rw-r--r--.github/workflows/update-and-deploy.yml34
1 files changed, 0 insertions, 34 deletions
diff --git a/.github/workflows/update-and-deploy.yml b/.github/workflows/update-and-deploy.yml
deleted file mode 100644
index fb034a6..0000000
--- a/.github/workflows/update-and-deploy.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-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
- env:
- NODE_OPTIONS: --dns-result-order=ipv4first
- 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