Compare commits

..

12 Commits

Author SHA1 Message Date
OMGeeky
7d194535d9 Update gradle.yml 2022-10-10 09:36:01 +02:00
OMGeeky
5364737471 Update gradle.yml 2022-10-10 09:32:43 +02:00
OMGeeky
448547c62d Update gradle.yml 2022-10-09 19:27:11 +02:00
OMGeeky
99ac4bb532 Update gradle.yml 2022-10-09 19:24:35 +02:00
OMGeeky
b93d3227fb Update gradle.yml 2022-10-09 19:18:26 +02:00
OMGeeky
d34723ad04 Update gradle.yml 2022-10-09 19:16:14 +02:00
OMGeeky
b236635735 Update gradle.yml 2022-10-09 19:10:36 +02:00
OMGeeky
6b66bebc3f Update gradle.yml 2022-10-09 19:07:58 +02:00
OMGeeky
71eafc368a Update gradle.yml 2022-10-09 19:04:42 +02:00
OMGeeky
573816dc20 Update gradle.yml
changed gradle build root dir
2022-10-09 18:58:59 +02:00
OMGeeky
0fbc290492 Update gradle.yml 2022-10-09 18:52:20 +02:00
OMGeeky
1c4290458f Create gradle.yml 2022-10-09 18:44:45 +02:00
2 changed files with 43 additions and 24 deletions

43
.github/workflows/gradle.yml vendored Normal file
View File

@@ -0,0 +1,43 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Build Gradle
on: workflow_dispatch
# on: [pull_request]
# push:
# branches: ["gradle_auto_copy" ]
# pull_request:
# branches: ["master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1.0.4
- name: Make gradle wrapper executable
run: chmod +x ./AndorsTrail/gradlew
- name: Build with Gradle
uses: gradle/gradle-build-action@v2.3.2
with:
arguments: build
build-root-directory: ./AndorsTrail

View File

@@ -21,27 +21,3 @@ android {
dependencies {
implementation 'com.android.support:support-v4:28.0.0'
}
task copyRes(type: Copy) {
description "Copies the res folder to the modules res folder (& renames .tmx to .xml)"
from "${rootDir}/res"
into "${projectDir}/src/main/res"
rename "(.*)\\.tmx", "\$1.xml"
}
task copyTranslation(type: Copy) {
description("Copies the translation files to the modules translations folder")
from "${rootDir}/assets/translation"
into "${projectDir}/src/main/assets/translation"
}
task cleanup(type: Delete) {
description("Deletes the assets/translation and the res folder from the modules folder")
delete "${projectDir}/src/main/res", "${projectDir}/src/main/assets/translation"
}
afterEvaluate {
preBuild.dependsOn project.tasks.copyRes
preBuild.dependsOn project.tasks.copyTranslation
clean.dependsOn project.tasks.cleanup
}