chore: import upstream snapshot with attribution
Deploy GitBook to 9router.github.io / build-deploy (push) Failing after 2s

This commit is contained in:
wehub-resource-sync
2026-07-13 12:21:01 +08:00
commit 05fcd08057
1298 changed files with 194683 additions and 0 deletions
+60
View File
@@ -0,0 +1,60 @@
name: Build and Push Docker Image
on:
push:
tags:
- "v*"
workflow_dispatch:
env:
GHCR_IMAGE: ghcr.io/${{ github.repository }}
DOCKERHUB_IMAGE: decolua/9router
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.GHCR_IMAGE }}
${{ env.DOCKERHUB_IMAGE }}
tags: |
type=semver,pattern={{version}}
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.GHCR_IMAGE }}:buildcache
cache-to: type=registry,ref=${{ env.GHCR_IMAGE }}:buildcache,mode=max
platforms: linux/amd64,linux/arm64
provenance: false
sbom: false
+50
View File
@@ -0,0 +1,50 @@
name: Deploy GitBook to 9router.github.io
on:
push:
branches: [main, master]
paths:
- "gitbook/**"
- ".github/workflows/gitbook-pages.yml"
workflow_dispatch:
concurrency:
group: gitbook-pages
cancel-in-progress: true
jobs:
build-deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: gitbook
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 24
- name: Install deps
run: npm install --no-audit --no-fund
- name: Build static export
run: npm run build
env:
NODE_ENV: production
NEXT_PUBLIC_BASE_PATH: ""
- name: Add .nojekyll
run: touch out/.nojekyll
- name: Deploy to 9router.github.io
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.GH_PAGES_DEPLOY_KEY }}
external_repository: 9router/9router.github.io
publish_branch: main
publish_dir: gitbook/out
force_orphan: true
user_name: github-actions[bot]
user_email: github-actions[bot]@users.noreply.github.com
commit_message: "deploy: ${{ github.sha }}"