From c9ae05cc24945b98e5f210d71da71172c8e0ee52 Mon Sep 17 00:00:00 2001 From: Feng Kaiyu Date: Sat, 23 Mar 2024 02:34:21 +0800 Subject: [PATCH] fixup! ci: automatically generate changelog. --- .github/workflows/release.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c08e733e..3932cd64 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,7 +67,7 @@ jobs: name: cls - name: Copy manual to the template folder. run: | - mv bithesis.pdf ./templates/${{ matrix.template }} + mv bithesis.pdf ./templates/${{ matrix.template }}/'bithesis-使用手册.pdf' mv ${{ matrix.cls }}.cls ./templates/${{ matrix.template }} - name: Install zip uses: montudor/action-zip@v1 @@ -106,9 +106,10 @@ jobs: asset_name: ${{ matrix.cls }}.cls tag: ${{ github.ref }} - upload_changelog: + publish_pdfs: name: Generate changelog runs-on: ubuntu-latest + needs: build outputs: release_body: ${{ steps.git-cliff.outputs.content }} steps: @@ -126,9 +127,17 @@ jobs: env: OUTPUT: CHANGES.md + - uses: actions/checkout@v2 + - name: Download PDF(s) + uses: actions/download-artifact@v3 + with: + name: bithesis + - name: Upload the releases notes uses: svenstaro/upload-release-action@v2 with: + file: bithesis.pdf + asset_name: bithesis-使用手册.pdf repo_token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ github.ref }} body: ${{ steps.git-cliff.outputs.content }}