Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaomwakuni authored Jun 17, 2024
1 parent 543183f commit 9fde72d
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,16 @@
name: Weaver CI/CD

on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.0

- name: Set up JDK
uses: actions/setup-java@v3.13.0
with:
distribution: 'adopt'
java-version: '17'

- name: Grant execute permission to Gradle wrapper
run: chmod +x ./gradlew

- name: Install dependencies and build APK
run: |
./gradlew clean
./gradlew assembleDebug
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.3
with:
name: Weaver.apk
path: app/build/outputs/apk/debug/app-debug.apk
uses: actions/checkout@v2

- name: Print a message
run: echo "Hello, Weaver CI/CD!"

0 comments on commit 9fde72d

Please sign in to comment.