Skip to content

Commit

Permalink
feat: add release
Browse files Browse the repository at this point in the history
  • Loading branch information
douglarek committed Aug 4, 2024
1 parent 6a2867b commit 4241240
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/make-epub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,25 @@ jobs:
sed -i 's/vertical-rl/horizontal-tb/g' OEBPS/Styles/*.css
sed -i 's/page-progression-direction="rtl"/page-progression-direction="ltr"/g' OEBPS/content.opf
zip -r sikutiyao.epub META-INF mimetype OEBPS
- name: Read release.md and use it as a body of new release
id: read_release
shell: bash
run: |
r=$(cat README.md)
r="${r//'%'/'%25'}"
r="${r//$'\n'/'%0A'}"
r="${r//$'\r'/'%0D'}"
echo "RELEASE_BODY=$r" >> $GITHUB_OUTPUT
- name: Publishing to GitHub Releases
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.TOKEN }}
file: "*.epub"
tag: latest
file_glob: true
overwrite: true
make_latest: false
body: |
${{ steps.read_release.outputs.RELEASE_BODY }} `*-vst` 代表竪排,`*.epub` 代表橫排。

0 comments on commit 4241240

Please sign in to comment.