Skip to content

Commit c9ae05c

Browse files
committed
fixup! ci: automatically generate changelog.
1 parent 76e2b50 commit c9ae05c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/release.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
name: cls
6868
- name: Copy manual to the template folder.
6969
run: |
70-
mv bithesis.pdf ./templates/${{ matrix.template }}
70+
mv bithesis.pdf ./templates/${{ matrix.template }}/'bithesis-使用手册.pdf'
7171
mv ${{ matrix.cls }}.cls ./templates/${{ matrix.template }}
7272
- name: Install zip
7373
uses: montudor/action-zip@v1
@@ -106,9 +106,10 @@ jobs:
106106
asset_name: ${{ matrix.cls }}.cls
107107
tag: ${{ github.ref }}
108108

109-
upload_changelog:
109+
publish_pdfs:
110110
name: Generate changelog
111111
runs-on: ubuntu-latest
112+
needs: build
112113
outputs:
113114
release_body: ${{ steps.git-cliff.outputs.content }}
114115
steps:
@@ -126,9 +127,17 @@ jobs:
126127
env:
127128
OUTPUT: CHANGES.md
128129

130+
- uses: actions/checkout@v2
131+
- name: Download PDF(s)
132+
uses: actions/download-artifact@v3
133+
with:
134+
name: bithesis
135+
129136
- name: Upload the releases notes
130137
uses: svenstaro/upload-release-action@v2
131138
with:
139+
file: bithesis.pdf
140+
asset_name: bithesis-使用手册.pdf
132141
repo_token: ${{ secrets.GITHUB_TOKEN }}
133142
tag: ${{ github.ref }}
134143
body: ${{ steps.git-cliff.outputs.content }}

0 commit comments

Comments
 (0)