Skip to content

Commit 10b10c6

Browse files
committed
ci(Github Actions): update build actions
1 parent 4195455 commit 10b10c6

File tree

3 files changed

+11
-34
lines changed

3 files changed

+11
-34
lines changed

.github/workflows/build-check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ name: Build Check
55
on:
66
# 手动使用 Github WebUI 触发
77
workflow_dispatch:
8-
# # 仓库收到 Push 时触发
9-
# push:
10-
# branches:
11-
# - master
8+
# 仓库收到 Push 时触发
9+
push:
10+
branches:
11+
- master
1212
# 仓库收到 pull_request 时触发
1313
pull_request:
1414
branches:

.github/workflows/build-release.yml

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ permissions:
1111

1212
jobs:
1313
Build:
14-
name: Belease APK
14+
name: Release APK
1515
runs-on: ubuntu-latest
1616
steps:
17+
# https://github.com/marketplace/actions/checkout
1718
- uses: actions/checkout@v3
1819

1920
- name: Get Tag
@@ -36,7 +37,7 @@ jobs:
3637

3738
# https://github.com/marketplace/actions/auto-changelog
3839
# require commit format are "type(category): description [flag]"
39-
- name: Changelog
40+
- name: Make Changelog
4041
uses: ardalanamini/auto-changelog@v3
4142
id: changelog
4243
with:
@@ -57,10 +58,9 @@ jobs:
5758
chore: Chores
5859
other: Other Changes
5960
default-commit-type: Other Changes
60-
release-name: v1.0.0
61-
mention-authors: true
61+
mention-authors: false
6262
mention-new-contributors: true
63-
include-compare: true
63+
include-compare: false
6464
semver: true
6565

6666
# https://github.com/marketplace/actions/gh-release
@@ -72,26 +72,3 @@ jobs:
7272
body: ${{ steps.changelog.outputs.changelog }}
7373
prerelease: false
7474
files: ${{steps.sign_apk.outputs.signedReleaseFile}}
75-
76-
# - name: Create release
77-
# uses: actions/create-release@v1
78-
# id: create_release
79-
# with:
80-
# draft: false
81-
# prerelease: false
82-
# release_name: Release ${{ github.ref }}
83-
# tag_name: ${{ github.ref }}
84-
# body: |
85-
# ${{ steps.changelog.outputs.changelog }}
86-
# env:
87-
# GITHUB_TOKEN: ${{ github.token }}
88-
89-
# - name: Upload APK
90-
# uses: actions/upload-release-asset@v1
91-
# env:
92-
# GITHUB_TOKEN: ${{ github.token }}
93-
# with:
94-
# upload_url: ${{ steps.create_release.outputs.upload_url }}
95-
# asset_path: ${{steps.sign_apk.outputs.signedReleaseFile}}
96-
# asset_name: GoGoGo-${{ steps.var.outputs.tag }}.apk
97-
# asset_content_type: application/zip

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ android {
2222
applicationId "com.zcshou.gogogo"
2323
minSdkVersion 27
2424
targetSdkVersion 32
25-
versionCode 1102
26-
versionName '1.10.2' // https://semver.org/lang/zh-CN/
25+
versionCode 1103
26+
versionName '1.10.3' // https://semver.org/lang/zh-CN/
2727
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2828
resConfigs 'zh', 'zh-rCN', 'en', 'en-rUS'
2929
ndk {

0 commit comments

Comments
 (0)