Skip to content

Commit

Permalink
fix: gradlew: Permission denied
Browse files Browse the repository at this point in the history
  • Loading branch information
SidharthMudgil committed Nov 28, 2023
1 parent 954711b commit b6b67c0
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/AndroidBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,23 @@ jobs:
runs-on: ubuntu-latest

steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "This job is running on a ${{ runner.os }} server hosted by GitHub!"
- name: Checkout
uses: actions/checkout@v4.1.1
- run: echo "The ${{ github.repository }} repository has been cloned."

- run: echo "Setting up JDK"
- name: Setup Java JDK
uses: actions/setup-java@v3.13.0
with:
java-version: '17'
distribution: 'oracle'
- run: echo "JDK setup completed"
- run: echo "The workflow is now ready to build your code"

- run: echo "Building the apk"
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build
- run: echo "Apk build finished"

- run: echo "Uploading build artifact"
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.3
with:
name: BitPost.apk
path: app/build/outputs/apk/debug/app-release.apk
- run: echo "Build artifact uploaded"
- run: echo "Build job completed"
path: app/build/outputs/apk/debug/app-release.apk

0 comments on commit b6b67c0

Please sign in to comment.