使用 actions 自动构建 hugo,自定义域会不见,更新一次博客,域名就会消失,添加了 CANME 也没用
資深大佬 : klii 5
name: Deploy Hugo on: push: branches: - main jobs: build-deploy: runs-on: ubuntu-18.04 steps: - uses: actions/[email protected] - name: Setup Hugo uses: peaceiris/[email protected] with: hugo-version: latest - name: Build run: hugo - name: Deploy uses: peaceiris/[email protected] with: personal_token: ${{ secrets.personal_token }} PUBLISH_BRANCH: gh-pages commit_message: ${{ github.event.head_commit.message }}
大佬有話說 (13)