This repository archives WeChat articles and generates a static website to display them.
The website is automatically deployed to GitHub Pages. You can view it at: https://teamtaoist.github.io/wc-archives/
- Go to repository Settings > Pages
- Under "Build and deployment":
- Source: GitHub Actions
- Branch: main
- The site will be automatically deployed when changes are pushed to the main branch
The repository uses several GitHub Actions workflows:
fetch-articles.yml
: Fetches new articles from WeChatbatch-update.yml
: Processes articles in batchesdaily-update.yml
: Daily updates for new articlesdeploy-pages.yml
: Deploys the website to GitHub Pages
# Install dependencies
npm install
# Run article fetch to fetch all articles
npm run fetch
# Process articles
npm run process
# Run daily update to fetch new articles
npm run update
The following environment variables are required:
WECHAT_BIZ_ID
: WeChat business IDWECHAT_TOKEN
: WeChat API tokenWECHAT_COOKIE
: WeChat cookie for authentication
These should be set as GitHub repository secrets.