Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rxliuli authored Aug 10, 2024
1 parent ecd9890 commit e8acc00
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,21 @@ jobs:
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
- name: Create Release and Upload Assets
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.bump_version.outputs.new_version }}
name: Release ${{ steps.bump_version.outputs.new_version }}
body: |
Release epub for version ${{ steps.bump_version.outputs.new_version }}
files: |
./dist/epub/第一卷-量子纠缠.epub
./dist/epub/第二卷-宇宙膨胀.epub
./dist/epub/第三卷-存在悖论.epub
./dist/epub/第四卷-爱因斯坦-罗森桥.epub
./dist/epub/番外.epub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/epub/*.epub
asset_name: ebook.epub
asset_content_type: application/epub+zip

# deploy:
# environment:
Expand Down

0 comments on commit e8acc00

Please sign in to comment.