Skip to content

Commit

Permalink
ci: github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Anxcye committed Sep 2, 2024
1 parent 3479b6f commit a8a25cf
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 9 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Build & Release
on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: '3.x'

- name: Get Flutter version
run: flutter --version

- name: Install dependencies
run: flutter pub get

- name: Build APKs
run: |
flutter build apk --release
flutter build apk --split-per-abi
- name: Get version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV

- name: Rename APKs
run: |
cd app/build/app/outputs/flutter-apk
mv app-armeabi-v7a-release.apk Anx-Reader-${{ env.VERSION }}-armeabi-v7a.apk
mv app-arm64-v8a-release.apk Anx-Reader-${{ env.VERSION }}-arm64-v8a.apk
mv app-x86_64-release.apk Anx-Reader-${{ env.VERSION }}-x86_64.apk
mv app-release.apk Anx-Reader-${{ env.VERSION }}-universal.apk
- name: Extract release notes
id: extract_release_notes
run: |
VERSION=${{ env.VERSION }}
CHANGELOG_CONTENT=$(sed -n "/## $VERSION/,/## /p" CHANGELOG.md | sed '$d')
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
echo "$CHANGELOG_CONTENT" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
app/build/app/outputs/flutter-apk/Anx-Reader-${{ env.VERSION }}-armeabi-v7a.apk
app/build/app/outputs/flutter-apk/Anx-Reader-${{ env.VERSION }}-arm64-v8a.apk
app/build/app/outputs/flutter-apk/Anx-Reader-${{ env.VERSION }}-x86_64.apk
app/build/app/outputs/flutter-apk/Anx-Reader-${{ env.VERSION }}-universal.apk
body: ${{ env.RELEASE_NOTES }}
generate_release_notes: false
29 changes: 20 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
# Changelog

## Unreleased
- feat: TTS support
- feat: sort and filter notes
- feat: open book from notes
- feat: page turn animation
- feat: custom font
- feat: search over book content
- fix: book style #24, #28
- fix: toc overflow
## 1.1.6 2024-09-02
This release includes a number of new features and improvements, as well as bug fixes.
Feature: Added support for importing books in mobi, azw3, and fb2 formats
Feature: Added TTS (Text-to-Speech) voice reading functionality
Feature: Added filter, sort, and open book at the note location features in the note list
Feature: Added more page-turning methods
Feature: Added support for importing custom fonts
Feature: Added full-text search functionality
Fix: Resolved issues where book styles were not applied (#24, #28)
Other: For more new features and bug fixes

众多新增功能!
功能:新增mobi、azw3、fb2格式书籍导入
功能:新增TTS语音朗读
功能:笔记列表可筛选、排序、打开书到笔记的位置
功能:新增更多翻页方式
功能:导入自定义字体
功能:全文搜索
修复:书籍样式不生效 #24#28
以及其他众多新功能和修复

0 comments on commit a8a25cf

Please sign in to comment.