Skip to content

🤖 自动更新每日AI动态 V2 - 2025-12-28 #538

🤖 自动更新每日AI动态 V2 - 2025-12-28

🤖 自动更新每日AI动态 V2 - 2025-12-28 #538

Workflow file for this run

name: Deploy Hugo site to Pages
on:
push:
branches:
- main
- gh-pages
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
token: ${{ secrets.MY_GITHUB_TOKEN }}
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.19"
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.152.2"
extended: true
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install Node.js dependencies
run: |
npm install -g postcss-cli
npm install -g autoprefixer
- name: Build with Hugo
env:
HUGO_ENVIRONMENT: production
HUGO_ENV: production
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
run: hugo --minify --configDir=config
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4