Skip to content

Merge branch 'ShiftHackZ:master' into master #5

Merge branch 'ShiftHackZ:master' into master

Merge branch 'ShiftHackZ:master' into master #5

name: Build and Compile APK
"on":
push:
branches:
- master
- main
jobs:
build_apk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'adopt'
- name: Build APK
run: |
chmod +x ./gradlew
./gradlew assembleRelease
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: app-release.apk
path: app/build/outputs/apk/release/app-release.apkname: Build and Release APK

Check failure on line 26 in .github/workflows/build-release-apk.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-release-apk.yml

Invalid workflow file

You have an error in your yaml syntax on line 26
"on":
push:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Resolve dependencies
run: ./gradlew dependencies
- name: Build release APK
run: ./gradlew assembleRelease
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: app-release
path: app/build/outputs/apk/release/*.apk
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: app-release
path: app/build/outputs/apk/release
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
files: app/build/outputs/apk/release/*.apk