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 64242bf
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .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,7 +80,21 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create release
- name: Create Nightly release
if: ${{ github.ref == 'refs/heads/develop' }}
uses: ncipollo/release-action@v1
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@v1
with:
allowUpdates: true
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 64242bf

Please sign in to comment.