-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APK Build on CI #55
Merged
Merged
APK Build on CI #55
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
51183dd
ci: add new workflow to build android apk
coaguila 7c22f91
Merge branch 'main' of github.com:PeriodPals/periodpals into ci/apk-b…
coaguila b20049b
ci: change name of branch from master to main
coaguila ed24c90
ci: change os from macos to ubuntu
coaguila 43680f4
ci: fix gradlew execute permission
coaguila 7385730
ci: change to assembleDebug
coaguila aef5832
ci: change to assembleDebug with no params
coaguila File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: AndroidBuild | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: macOS-latest //or ubunto-latest or windows-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4.1.0 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3.13.0 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '17' | ||
|
||
- name: Grant execute permissions for gradlew //this step is only for macOS | ||
run: chmod +x ./gradlew | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew build | ||
|
||
- name: Upload a Build Artifact | ||
uses: actions/upload-artifact@v3.1.3 | ||
with: | ||
name: dsTemplate.apk | ||
path: app/build/outputs/apk/debug/app-debug.apk | ||
|
||
- name: Decode Keystore | ||
run: echo "${{ secrets.KEYSTORE }}" | base64 --decode > /tmp/keystore.jks | ||
|
||
- name: Build Release | ||
run: ./gradlew assembleRelease -Pandroid.injected.signing.store.file=/tmp/keystore.jks -Pandroid.injected.signing.store.password=${{ secrets.KEYSTORE_PASSWORD }} -Pandroid.injected.signing.key.alias=${{ secrets.KEY_ALIAS }} -Pandroid.injected.signing.key.password=${{ secrets.KEY_PASSWORD }} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
main
notmaster
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are correct, thank you for your input 👍🏽