Skip to content

Commit

Permalink
fixup! ci: automatically generate changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
fky2015 committed Mar 22, 2024
1 parent 76e2b50 commit c9ae05c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down

0 comments on commit c9ae05c

Please sign in to comment.