From 58789b753227a20f3b183cf17bf2a2e4ca3f4b98 Mon Sep 17 00:00:00 2001 From: GHL-beta Date: Sun, 24 Aug 2025 16:28:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(bing):=20=E6=B5=8B=E8=AF=95=20bing=20?= =?UTF-8?q?=E7=9A=84=20IndexNow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/biome.yml | 20 ------ .github/workflows/build.yml | 67 --------------------- .github/workflows/indexnow.yml | 21 +++++++ public/2d2cc4a588c44fffad1e9f59caf75cac.txt | 1 + 4 files changed, 22 insertions(+), 87 deletions(-) delete mode 100644 .github/workflows/biome.yml delete mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/indexnow.yml create mode 100644 public/2d2cc4a588c44fffad1e9f59caf75cac.txt diff --git a/.github/workflows/biome.yml b/.github/workflows/biome.yml deleted file mode 100644 index b8d2281..0000000 --- a/.github/workflows/biome.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Code quality - -on: - push: - branches: [ main ] # Adjust branches as needed - pull_request: - branches: [ main ] # Adjust branches as needed - -jobs: - quality: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Setup Biome - uses: biomejs/setup-biome@f382a98e582959e6aaac8e5f8b17b31749018780 # v2.5.0 - with: - version: latest - - name: Run Biome - run: biome ci ./src --reporter=github diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index d79658e..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Build and Check - -on: - push: - branches: [ main ] # Adjust branches as needed - pull_request: - branches: [ main ] # Adjust branches as needed - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - contents: read - -jobs: - check: - strategy: - matrix: - node: [ 22, 23 ] - runs-on: ubuntu-latest - name: Astro Check for Node.js ${{ matrix.node }} - steps: - - name: Setup Node.js - uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 - with: - node-version: ${{ matrix.node }} # Use LTS - - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Setup pnpm - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 - with: - run_install: false # Disable auto-install - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Run Astro Check - run: pnpm astro check - - build: - strategy: - matrix: - node: [ 22, 23 ] - runs-on: ubuntu-latest - name: Astro Build for Node.js ${{ matrix.node }} # Corrected job name - steps: - - name: Setup Node.js - uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 - with: - node-version: ${{ matrix.node }} - - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Setup pnpm - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 - with: - run_install: false # Disable auto-install - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Run Astro Build - run: pnpm astro build diff --git a/.github/workflows/indexnow.yml b/.github/workflows/indexnow.yml new file mode 100644 index 0000000..a29b2e7 --- /dev/null +++ b/.github/workflows/indexnow.yml @@ -0,0 +1,21 @@ +name: "必应 IndexNow 提交" +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + check-and-submit: + runs-on: ubuntu-latest + steps: + - name: submit-to-bing + uses: bojieyang/indexnow-action@v1 + with: + sitemap-location: "https://adclosenn.top/sitemap-0.xml" + endpoint: "www.bing.com" + since: 1 + since-unit: "day" + limit: 100 + key: ${{ secrets.INDEXNOW_KEY }} + key-location: ${{ secrets.INDEXNOW_KEY_LOCATION }} diff --git a/public/2d2cc4a588c44fffad1e9f59caf75cac.txt b/public/2d2cc4a588c44fffad1e9f59caf75cac.txt new file mode 100644 index 0000000..4954ee1 --- /dev/null +++ b/public/2d2cc4a588c44fffad1e9f59caf75cac.txt @@ -0,0 +1 @@ +2d2cc4a588c44fffad1e9f59caf75cac \ No newline at end of file