Skip to content

Update dependency ubuntu to v24 #174

Update dependency ubuntu to v24

Update dependency ubuntu to v24 #174

Workflow file for this run

name: GitHub Pages
on: push
jobs:
deploy:
runs-on: ubuntu-24.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.95.0'
- name: Build
run: hugo --minify
- name: Deploy 🚀
uses: peaceiris/[email protected]
if: ${{ github.ref == 'refs/heads/main' }}
with:
personal_token: ${{ secrets.TOKEN }}
publish_dir: ./public
external_repository: xushaoxiao/xushaoxiao.github.io
# keep_files: true
publish_branch: main
allow_empty_commit: true