Skip to content

Add Baidu tongji script #8

Add Baidu tongji script

Add Baidu tongji script #8

Workflow file for this run

name: Deploy to Cloudflare and GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: self-hosted
timeout-minutes: 4320
name: Build Project
env:
ENABLE_DOCUSAURUS_EXPERIMENTAL: 'true'
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Build
run: npm run build_32g
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: build-artifact
path: build
retention-days: 1 # Keeps the artifact for 1 day
# deploy-cloudflare:
# runs-on: ubuntu-latest
# needs: build
# name: Deploy to Cloudflare
# steps:
# - uses: actions/checkout@v4
# - name: Download build artifact
# uses: actions/download-artifact@v4
# with:
# name: build-artifact
# path: build
# - name: Deploy to Cloudflare Pages
# uses: cloudflare/wrangler-action@v3
# with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# command: pages deploy build --project-name=cool-coding
deploy-github-pages:
permissions:
contents: read
pages: write
id-token: write
runs-on: ubuntu-latest
needs: build
name: Deploy to GitHub Pages
steps:
- uses: actions/checkout@v4
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: build-artifact
path: build
- name: Deploy to GitHub Pages
uses: actions/upload-pages-artifact@v3 # Updated to v4
with:
path: build
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
# submit-url-seo:
# name: Submit URL to IndexNow
# runs-on: ubuntu-latest
# needs: [ build, deploy-github-pages ]
# steps:
# - uses: actions/checkout@v4
# - name: Install Dependencies
# run: pip install requests
# - name: Submit URL to IndexNow
# run: |
# bash submit_url.sh