Skip to content

Commit

Permalink
ci: create nightly release attached to the latest commit
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Jan 17, 2024
1 parent b78b45d commit 6e22675
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Release
on:
push:
branches:
- develop
tags:
- '*'
env:
Expand Down Expand Up @@ -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') }}
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Trime is originally a frontend of open-source [Android Traditional Chinese IME],
[<img alt='Google Play Download Now' src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png' height='80px'/>](https://play.google.com/store/apps/details?id=com.osfans.trime)
[<img alt='Coolapk' src='https://static.coolapk.com/static/web/v8/img/icon.png' height='80px'/>](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)
Expand Down
2 changes: 2 additions & 0 deletions README_sc.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
[<img alt='Google Play 立即下载' src='https://play.google.com/intl/en_us/badges/images/generic/zh-cn_badge_web_generic.png' height='80px'/>](https://play.google.com/store/apps/details?id=com.osfans.trime)
[<img alt='酷安' src='https://static.coolapk.com/static/web/v8/img/icon.png' height='60px'/>](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)
Expand Down
2 changes: 2 additions & 0 deletions README_tc.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
[<img alt='Google Play 立即下載' src='https://play.google.com/intl/en_us/badges/images/generic/zh-tw_badge_web_generic.png' height='80px'/>](https://play.google.com/store/apps/details?id=com.osfans.trime)
[<img alt='酷安' src='https://static.coolapk.com/static/web/v8/img/icon.png' height='60px'/>](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)
Expand Down

0 comments on commit 6e22675

Please sign in to comment.