mirror of
https://github.com/ZCShou/GoGoGo.git
synced 2026-06-05 21:00:50 +08:00
update actions
This commit is contained in:
parent
8eee4f93ac
commit
1be5cb8a7c
4
.github/workflows/build-check.yml
vendored
4
.github/workflows/build-check.yml
vendored
@ -26,10 +26,12 @@ jobs:
|
||||
build:
|
||||
# 该 job 运行的系统环境,支持 ubuntu 、windows、macOS
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# 该 job 的一系列步骤。每个以“-”开头
|
||||
steps:
|
||||
# 检出我们的源代码
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# 设置 JDK
|
||||
- name: set up JDK 11
|
||||
uses: actions/setup-java@v3
|
||||
@ -37,9 +39,11 @@ jobs:
|
||||
java-version: '11'
|
||||
distribution: 'temurin'
|
||||
cache: gradle
|
||||
|
||||
# 给 gradlew 增加执行权限
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
|
||||
# 启动构建
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew build
|
||||
|
||||
13
.github/workflows/build-release.yml
vendored
13
.github/workflows/build-release.yml
vendored
@ -1,14 +1,17 @@
|
||||
name: Release Build
|
||||
name: Build Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
tags:
|
||||
- 'Release*'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
name: Build/Sign APK
|
||||
name: Belease APK
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -20,6 +23,7 @@ jobs:
|
||||
- name: Build APK
|
||||
run: bash ./gradlew assembleRelease
|
||||
|
||||
# https://github.com/marketplace/actions/sign-android-release
|
||||
- name: Sign APK
|
||||
id: sign_apk
|
||||
uses: r0adkll/sign-android-release@v1
|
||||
@ -30,13 +34,16 @@ jobs:
|
||||
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
||||
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
||||
|
||||
# https://github.com/marketplace/actions/auto-changelog
|
||||
# require commit format are "type(category): description [flag]"
|
||||
- name: Build Changelog
|
||||
id: changelog
|
||||
uses: ardalanamini/auto-changelog@v3.2.1
|
||||
with:
|
||||
token: ${{ github.token }}
|
||||
|
||||
- name: Release
|
||||
# https://github.com/marketplace/actions/gh-release
|
||||
- name: Release APK
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user