Skip to content

feat: 每日一问

feat: 每日一问 #5

Workflow file for this run

name: PR Check
on:
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pull-requests: read
concurrency:
group: pr-check-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build Hugo site
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.159.0
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: ${{ env.HUGO_VERSION }}
extended: true
- name: Generate contributors data
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
CONTRIBUTORS_OUTPUT: data/contributors.json
run: python3 scripts/generate_contributors.py
- name: Build
run: hugo --minify