Improve node fetching and connection failover

This commit is contained in:
Aimili
2026-08-26 20:54:24 +08:00
parent fb22c57717
commit 07983511fc
11 changed files with 1610 additions and 248 deletions
@@ -0,0 +1,42 @@
name: Update VPNGate mirror
on:
schedule:
- cron: "*/15 * * * *"
workflow_dispatch:
push:
branches: [main]
paths:
- ".github/workflows/update-vpngate-mirror.yml"
- "scripts/build_vpngate_mirror.py"
- "snapshot_utils.py"
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: vpngate-pages-mirror
cancel-in-progress: false
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Fetch and validate VPNGate snapshot
run: python scripts/build_vpngate_mirror.py --output-dir _site
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: _site
- name: Deploy GitHub Pages
id: deployment
uses: actions/deploy-pages@v4