test
This commit is contained in:
parent
3ab38818f0
commit
37ff4337aa
|
@ -0,0 +1,42 @@
|
|||
name: Release new version
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
branches-ignore:
|
||||
- ''
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [ "all", "arm", "arm64", "x86", "x64" ]
|
||||
fail-fast: false
|
||||
env:
|
||||
FCL_KEYSTORE_PASSWORD: ${{ secrets.FCL_KEYSTORE_PASSWORD }}
|
||||
name: Build for ${{matrix.arch}}
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: set up JDK 17
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 17
|
||||
|
||||
- name: Build release ${{matrix.arch}} .apk
|
||||
run: |
|
||||
chmod +x gradlew
|
||||
./gradlew assemblerelease -Darch=${{matrix.arch}}
|
||||
|
||||
- name: Release
|
||||
uses: marvinpinto/action-automatic-releases@latest
|
||||
with:
|
||||
repo_token: "${{ secrets.TOKEN }}"
|
||||
prerelease: false
|
||||
files: |
|
||||
FCL/build/outputs/apk/release/*.apk
|
|
@ -106,12 +106,6 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
tasks.whenTaskAdded { Task task ->
|
||||
if (task.name.contentEquals("assembleRelease")) {
|
||||
task.dependsOn(uploadMap)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register('updateMap') {
|
||||
doLast {
|
||||
def list = []
|
||||
|
|
Loading…
Reference in New Issue