name:GitHub Pages Deploy Local REPOSITORYon:push:branches:- master # Set a branch to deploypull_request:jobs:deploy:runs-on:ubuntu-20.04concurrency:group:${{ github.workflow }}-${{ github.ref }}steps:- uses:actions/checkout@v3with:submodules:true# Fetch Hugo themes (true OR recursive)fetch-depth:1# Fetch all history for .GitInfo and .Lastmod- name:Setup Hugouses:peaceiris/actions-hugo@v2with:hugo-version:'0.91.2'extended:true- name:Buildrun:hugo --minify- name:Deployuses:peaceiris/actions-gh-pages@v3with:github_token:${{ secrets.GITHUB_TOKEN }}publish_dir:./public
name:CI#自动化的名称on:push:# push的时候触发branches:# 那些分支需要触发- masterjobs:deploy:runs-on:ubuntu-20.04steps:- uses:actions/checkout@v2with:submodules:true# Fetch Hugo themes (true OR recursive)fetch-depth:1# Fetch all history for .GitInfo and .Lastmod- name:Setup Hugouses:peaceiris/actions-hugo@v2with:hugo-version:'latest'extended:true- name:Buildrun:hugo --minify- name:Deployuses:peaceiris/actions-gh-pages@v3with:personal_token:${{ secrets.EXTERNAL_REPOSITORY_TOKEN }}publish_dir:./publicexternal_repository:kbsonlong/devops.alongparty.cn
name:CI#自动化的名称on:push:# push的时候触发branches:# 那些分支需要触发- masterjobs:deploy:runs-on:ubuntu-20.04steps:- uses:actions/checkout@v2with:submodules:true# Fetch Hugo themes (true OR recursive)fetch-depth:1# Fetch all history for .GitInfo and .Lastmod- name:Setup Hugouses:peaceiris/actions-hugo@v2with:hugo-version:'latest'extended:true- name:Buildrun:hugo --minify- name:Deploy with PRIVATE KEYuses:peaceiris/actions-gh-pages@v3with:cname:devops.alongparty.cnenv:ACTIONS_DEPLOY_KEY:${{ secrets.HUGO_DEPLOY_PRIVATE_KEY }}EXTERNAL_REPOSITORY:kbsonlong/devops.alongparty.cnPUBLISH_BRANCH:gh-pagesPUBLISH_DIR:./public