gkd/.github/workflows/Build-Apk.yml
2023-11-21 18:33:34 +08:00

42 lines
894 B
YAML

name: Build-Apk
on:
workflow_dispatch:
push:
branches:
- '**'
env:
BUGLY_TOKEN: ${{ secrets.BUGLY_TOKEN }}
jobs:
build:
if: ${{ !startsWith(github.event.head_commit.message, 'chore:') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '17'
cache: 'gradle'
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- run: chmod 777 ./gradlew
- run: ./gradlew build
- uses: actions/upload-artifact@v3
with:
name: outputs.zip
path: app/build/outputs