Skip to content

Commit

Permalink
ci: Adapt release build to submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb3rko committed Apr 7, 2023
1 parent 76c9512 commit c21fadd
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/release-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,29 +82,17 @@ jobs:
CHANGELOG: ${{ steps.github_release.outputs.changelog }}
run: echo "$CHANGELOG"

- name: Checkout local repo
- name: Checkout repo including backpack submodule
uses: actions/checkout@v2
with:
path: ./pincredible
- name: Checkout backpack repo
uses: actions/checkout@v2
with:
repository: cyb3rko/backpack-apps
path: ./backpack-apps
submodules: recursive

- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'

- name: Show root directory
run: ls
- name: Show pincredible directory
run: |
cd pincredible
ls
cd ..

- name: Show backpack directory
run: |
cd backpack-apps
Expand All @@ -116,7 +104,6 @@ jobs:

- name: Build APK
run: |
cd pincredible
export KEYSTORE_FILE=$(pwd)/keystore.jks
echo $KEYSTORE | base64 -d > $KEYSTORE_FILE
./gradlew -Psign build --stacktrace
Expand All @@ -129,12 +116,12 @@ jobs:

- name: List build output
run: |
cd pincredible/app/build/outputs/apk/release/
cd app/build/outputs/apk/release/
ls
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: "Version ${{ env.RELEASE_VERSION }}"
body: ${{steps.github_release.outputs.changelog}}
files: pincredible/app/build/outputs/apk/release/PINcredible-${{env.RELEASE_VERSION}}.apk
files: app/build/outputs/apk/release/PINcredible-${{env.RELEASE_VERSION}}.apk

0 comments on commit c21fadd

Please sign in to comment.