-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
543183f
commit 9fde72d
Showing
1 changed file
with
6 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!" |