Skip to content

Commit

Permalink
ci(Github Actions): update build actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ZCShou committed Jun 22, 2022
1 parent 4195455 commit 10b10c6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 34 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ name: Build Check
on:
# 手动使用 Github WebUI 触发
workflow_dispatch:
# # 仓库收到 Push 时触发
# push:
# branches:
# - master
# 仓库收到 Push 时触发
push:
branches:
- master
# 仓库收到 pull_request 时触发
pull_request:
branches:
Expand Down
33 changes: 5 additions & 28 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ permissions:

jobs:
Build:
name: Belease APK
name: Release APK
runs-on: ubuntu-latest
steps:
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@v3

- name: Get Tag
Expand All @@ -36,7 +37,7 @@ jobs:

# https://github.com/marketplace/actions/auto-changelog
# require commit format are "type(category): description [flag]"
- name: Changelog
- name: Make Changelog
uses: ardalanamini/auto-changelog@v3
id: changelog
with:
Expand All @@ -57,10 +58,9 @@ jobs:
chore: Chores
other: Other Changes
default-commit-type: Other Changes
release-name: v1.0.0
mention-authors: true
mention-authors: false
mention-new-contributors: true
include-compare: true
include-compare: false
semver: true

# https://github.com/marketplace/actions/gh-release
Expand All @@ -72,26 +72,3 @@ jobs:
body: ${{ steps.changelog.outputs.changelog }}
prerelease: false
files: ${{steps.sign_apk.outputs.signedReleaseFile}}

# - name: Create release
# uses: actions/create-release@v1
# id: create_release
# with:
# draft: false
# prerelease: false
# release_name: Release ${{ github.ref }}
# tag_name: ${{ github.ref }}
# body: |
# ${{ steps.changelog.outputs.changelog }}
# env:
# GITHUB_TOKEN: ${{ github.token }}

# - name: Upload APK
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ github.token }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ${{steps.sign_apk.outputs.signedReleaseFile}}
# asset_name: GoGoGo-${{ steps.var.outputs.tag }}.apk
# asset_content_type: application/zip
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ android {
applicationId "com.zcshou.gogogo"
minSdkVersion 27
targetSdkVersion 32
versionCode 1102
versionName '1.10.2' // https://semver.org/lang/zh-CN/
versionCode 1103
versionName '1.10.3' // https://semver.org/lang/zh-CN/
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
resConfigs 'zh', 'zh-rCN', 'en', 'en-rUS'
ndk {
Expand Down

0 comments on commit 10b10c6

Please sign in to comment.