Skip to content

Commit

Permalink
ci: update build workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb3rko committed Nov 17, 2024
1 parent 967e6c8 commit 0ddecbd
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 32 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/continuous_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ on:
- 'metadata/**'
- 'legal/**'
- '**.md'
- 'app/src/release/generated/baselineProfiles/**-prof.txt'
- 'app/**.pro'
- 'LICENSE'
- '.github/workflows/**'
- '.github/workflows/release-builder.yml'
- '.github/FUNDING.yml'
- '.editorconfig'
- '.idea/**'
pull_request:

jobs:
Expand All @@ -19,13 +23,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo including backpack submodule
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive

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

Expand All @@ -34,12 +38,12 @@ jobs:
cd backpack-apps
ls
cd ..
- name: Build APK
run: |
chmod +x ./gradlew
./gradlew build --stacktrace
./gradlew assembleRelease --stacktrace
- name: List build output
run: |
cd app/build/outputs/apk/release/
Expand Down
45 changes: 21 additions & 24 deletions .github/workflows/release-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v3
uses: mikepenz/release-changelog-builder-action@v5
with:
failOnError: true
commitMode: true
Expand Down Expand Up @@ -76,53 +76,50 @@ jobs:
}
]
}
- name: Echo Changelog
env:
CHANGELOG: ${{ steps.github_release.outputs.changelog }}
run: echo "$CHANGELOG"


- name: Set release name
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV

- name: Checkout repo including backpack submodule
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive

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

- name: Show backpack directory
run: |
cd backpack-apps
ls
cd ..
- name: Set release name
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV

run: ls backpack-apps

- name: Build APK
run: |
export KEYSTORE_FILE=$(pwd)/keystore.jks
echo $KEYSTORE | base64 -d > $KEYSTORE_FILE
chmod +x ./gradlew
./gradlew -Psign build --stacktrace
cp app/build/outputs/apk/release/app-release.apk app/build/outputs/apk/release/PINcredible-$RELEASE_VERSION.apk
cp app/build/outputs/apk/release/app-release.apk app/build/outputs/PINcredible-$RELEASE_VERSION.apk
env:
KEYSTORE: ${{ secrets.KEYSTORE }}
KEYSTORE_PASSWD: ${{ secrets.KEYSTORE_PASSWD }}
KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }}
KEYSTORE_KEY_PASSWD: ${{ secrets.KEYSTORE_KEY_PASSWD }}

- name: List build output
run: |
cd app/build/outputs/apk/release/
ls
run: ls app/build/outputs/

- name: Create Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
CHANGELOG: ${{ steps.github_release2.outputs.changelog }}
with:
name: "Version ${{ env.RELEASE_VERSION }}"
body: ${{steps.github_release.outputs.changelog}}
files: app/build/outputs/apk/release/PINcredible-${{env.RELEASE_VERSION}}.apk
body: ${{ env.CHANGELOG }}
files: app/build/outputs/PINcredible-${{env.RELEASE_VERSION}}.apk

0 comments on commit 0ddecbd

Please sign in to comment.