diff --git a/.github/workflows/deploy-public.yml b/.github/workflows/deploy-public.yml index d94cd40..7f92931 100644 --- a/.github/workflows/deploy-public.yml +++ b/.github/workflows/deploy-public.yml @@ -25,22 +25,21 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - + - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 - with: - hugo-version: '${{ env.HUGO_VERSION }}' - extended: true + run: | + wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${{ env.HUGO_VERSION }}/hugo_extended_${{ env.HUGO_VERSION }}_linux-amd64.deb + sudo dpkg -i ${{ runner.temp }}/hugo.deb - name: Build run: hugo --minify --gc - name: Deploy to public branch - uses: s0/git-publish-subdir-action@develop - env: - REPO: self - BRANCH: public - FOLDER: public - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - MESSAGE: "Build: ({sha}) {msg}" - SQUASH_HISTORY: true \ No newline at end of file + run: | + cd public + git init + git config user.name "GitHub Actions" + git config user.email "github-actions@github.com" + git add -A + git commit -m "Build: (${{ github.sha }}) ${{ github.event.head_commit.message }}" + git push --force https://${{ github.token }}@github.com/${{ github.repository }}.git HEAD:public \ No newline at end of file diff --git a/content/zh/archive.md b/content/zh/archive.md index 54966a8..b3bb5d0 100644 --- a/content/zh/archive.md +++ b/content/zh/archive.md @@ -1,6 +1,6 @@ --- title: "归档" layout: "archives" -url: "/zh-cn/archives" +url: "/zh/archives" summary: "archives" --- \ No newline at end of file diff --git a/content/zh/search.zh-cn.md b/content/zh/search.zh.md similarity index 100% rename from content/zh/search.zh-cn.md rename to content/zh/search.zh.md