Skip to content

chore: comment out java home path in gradle.properties #3

chore: comment out java home path in gradle.properties

chore: comment out java home path in gradle.properties #3

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: gradle-
- name: Create local.properties with API keys
run: |
echo "UNSPLASH_ACCESS_KEY=${{ secrets.UNSPLASH_ACCESS_KEY }}" >> local.properties
echo "WEATHER_API_KEY=${{ secrets.WEATHER_API_KEY }}" >> local.properties
echo "MAPS_API_KEY=${{ secrets.MAPS_API_KEY }}" >> local.properties
- name: Build debug APK
run: chmod +x gradlew && ./gradlew assembleDebug
- name: Get tag name
id: tag
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
- name: Create submission ZIP
run: |
zip -r "iTravel-${{ steps.tag.outputs.TAG_NAME }}-source.zip" \
app/src/ \
app/build.gradle \
app/proguard-rules.pro \
build.gradle \
settings.gradle \
gradle.properties \
gradle/ \
gradlew \
gradlew.bat \
docs/ \
README.md \
LICENSE \
-x "*.DS_Store" "*/.git/*"
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
app/build/outputs/apk/debug/app-debug.apk
iTravel-${{ steps.tag.outputs.TAG_NAME }}-source.zip