diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index 94ff78cbe96..bd4a1efa0c1 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -1,6 +1,8 @@ name: Release on: push: + branches: + - develop tags: - '*' env: @@ -78,8 +80,22 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Create release - uses: ncipollo/release-action@v1 + - name: Create Nightly release + if: ${{ github.ref == 'refs/heads/develop' }} + uses: ncipollo/release-action@latest + with: + allowUpdates: true + prerelease: true + artifacts: "app/build/outputs/apk/release/*.apk" + name: "Nightly Build" + tag: nightly + body: | + ${{ steps.build_changelog.outputs.changelog }} + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Create Stable release + if: ${{ github.ref != 'refs/heads/develop' }} + uses: ncipollo/release-action@latest with: allowUpdates: true prerelease: ${{ contains(github.ref_name, 'alpha') || contains(github.ref_name, 'beta') }} diff --git a/README.md b/README.md index ddd547dd58c..3d0263a0f97 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ Trime is originally a frontend of open-source [Android Traditional Chinese IME], [Google Play Download Now](https://play.google.com/store/apps/details?id=com.osfans.trime) [Coolapk](https://www.coolapk.com/apk/com.osfans.trime) +- Nightly Channel [Download](https://github.com/osfans/trime/releases/tag/nightly) + - Canary Channel [Download](https://github.com/osfans/trime/actions) - Configurations [rimerc](https://github.com/Bambooin/rimerc) diff --git a/README_sc.md b/README_sc.md index a844b44ec37..3f1b941c0b9 100644 --- a/README_sc.md +++ b/README_sc.md @@ -17,6 +17,8 @@ [Google Play 立即下载](https://play.google.com/store/apps/details?id=com.osfans.trime) [酷安](https://www.coolapk.com/apk/com.osfans.trime) +- 每夜版 [点击下载](https://github.com/osfans/trime/releases/tag/nightly) + - 测试版 [点击下载](https://github.com/osfans/trime/actions) - 配置文档 [rimerc](https://github.com/Bambooin/rimerc) diff --git a/README_tc.md b/README_tc.md index a77c2191f34..079c7136269 100644 --- a/README_tc.md +++ b/README_tc.md @@ -17,6 +17,8 @@ [Google Play 立即下載](https://play.google.com/store/apps/details?id=com.osfans.trime) [酷安](https://www.coolapk.com/apk/com.osfans.trime) +- 每夜版 [點選下載](https://github.com/osfans/trime/releases/tag/nightly) + - 測試版 [點選下載](https://github.com/osfans/trime/actions) - 配置文件 [rimerc](https://github.com/Bambooin/rimerc)