Add github files

This commit is contained in:
chiteroman 2023-12-11 01:38:01 +01:00
parent 03d71240fb
commit 10312d0a7d
No known key found for this signature in database
GPG Key ID: 19171A27D600CC72
3 changed files with 77 additions and 35 deletions

16
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,16 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "gradle" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"

View File

@ -1,36 +1,37 @@
name: Android CI
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assembleRelease
- name: Upload PlayIntegrityFix.zip
uses: actions/upload-artifact@v3
with:
name: PlayIntegrityFix
name: Android CI
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-depth: 0
- name: set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assembleRelease
- name: Upload PlayIntegrityFix.zip
uses: actions/upload-artifact@v3
with:
name: PlayIntegrityFix
path: module/*

View File

@ -0,0 +1,25 @@
name: Update Gradle Wrapper
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
update-gradle-wrapper:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 21
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Update Gradle Wrapper
uses: gradle-update/update-gradle-wrapper-action@v1