mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 17:19:27 +01:00
77 lines
1.5 KiB
YAML
77 lines
1.5 KiB
YAML
name: build-release-debugsign
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- assets/**
|
|
- .vscode/**
|
|
- .eslintrc.js
|
|
- .prettierrc.js
|
|
- BUILDING.md
|
|
- README.md
|
|
- LICENSE
|
|
branches:
|
|
- main
|
|
- release/*
|
|
pull_request:
|
|
paths-ignore:
|
|
- assets/**
|
|
- .vscode/**
|
|
- .eslintrc.js
|
|
- .prettierrc.js
|
|
- BUILDING.md
|
|
- README.md
|
|
- LICENSE
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
|
|
- run: |
|
|
rm submodules/ExoPlayer/gradle/wrapper/gradle-wrapper.jar
|
|
|
|
- uses: gradle/wrapper-validation-action@v1
|
|
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '14'
|
|
cache: 'yarn'
|
|
|
|
- run: |
|
|
yarn install --network-concurrency 1
|
|
|
|
- run: |
|
|
yarn lint --max-warnings 0
|
|
|
|
- run: |
|
|
yarn license
|
|
|
|
- run: |
|
|
yarn prepare-build
|
|
|
|
- uses: gradle/gradle-build-action@v1
|
|
with:
|
|
distributions-cache-enabled: true
|
|
dependencies-cache-enabled: true
|
|
configuration-cache-enabled: true
|
|
build-root-directory: android
|
|
arguments: assembleRelease -PsignReleaseWithDebug=true
|
|
|
|
- run: |
|
|
mkdir bin
|
|
|
|
- run: >
|
|
mv android/app/build/outputs/apk/release/app-release.apk
|
|
bin/subtracks-${GITHUB_SHA}.apk
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: subtracks-testing
|
|
path: bin/*
|