Fix build script
This commit is contained in:
parent
c301e4ff76
commit
df68221494
2 changed files with 8 additions and 6 deletions
7
.github/workflows/build_develop.yml
vendored
7
.github/workflows/build_develop.yml
vendored
|
|
@ -29,6 +29,9 @@ jobs:
|
||||||
java-version: 17
|
java-version: 17
|
||||||
distribution: adopt
|
distribution: adopt
|
||||||
|
|
||||||
|
- name: Set up gradle
|
||||||
|
uses: gradle/actions/setup-gradle@v3
|
||||||
|
|
||||||
- name: Write google-services.json
|
- name: Write google-services.json
|
||||||
uses: DamianReeves/write-file-action@v1.2
|
uses: DamianReeves/write-file-action@v1.2
|
||||||
with:
|
with:
|
||||||
|
|
@ -38,6 +41,4 @@ jobs:
|
||||||
|
|
||||||
- name: Build app
|
- name: Build app
|
||||||
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku' }}
|
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku' }}
|
||||||
uses: gradle/gradle-command-action@v2
|
run: ./gradlew assembleStandardRelease testStandardReleaseUnitTest --stacktrace
|
||||||
with:
|
|
||||||
arguments: assembleStandardRelease -x ktlintFormat --stacktrace
|
|
||||||
|
|
|
||||||
7
.github/workflows/build_preview.yml
vendored
7
.github/workflows/build_preview.yml
vendored
|
|
@ -62,6 +62,9 @@ jobs:
|
||||||
java-version: 17
|
java-version: 17
|
||||||
distribution: adopt
|
distribution: adopt
|
||||||
|
|
||||||
|
- name: Set up gradle
|
||||||
|
uses: gradle/actions/setup-gradle@v3
|
||||||
|
|
||||||
- name: Write Version.kt
|
- name: Write Version.kt
|
||||||
uses: DamianReeves/write-file-action@v1.2
|
uses: DamianReeves/write-file-action@v1.2
|
||||||
with:
|
with:
|
||||||
|
|
@ -85,9 +88,7 @@ jobs:
|
||||||
|
|
||||||
- name: Build app
|
- name: Build app
|
||||||
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku' }}
|
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku' }}
|
||||||
uses: gradle/gradle-command-action@v2
|
run: ./gradlew assembleStandardRelease testStandardReleaseUnitTest --stacktrace
|
||||||
with:
|
|
||||||
arguments: assembleStandardRelease -x ktlintFormat --stacktrace
|
|
||||||
|
|
||||||
- name: Sign Android Release
|
- name: Sign Android Release
|
||||||
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku' }}
|
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku' }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue