Update dependency org.bouncycastle:bcutil-jdk18on to v1.82 #3762
Workflow file for this run
This file contains hidden or 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
name: π¨ Gradle Build | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- 'fastlane/**' | |
- '*.md' | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
attestations: write | |
contents: write | |
steps: | |
- name: β¬οΈ Checkout repository | |
uses: actions/checkout@v5 | |
- name: β¨οΈ JDK | |
uses: actions/setup-java@v5 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
check-latest: true | |
- name: β Add exec permission | |
run: chmod +x gradlew | |
- name: π΅οΈ Validate Gradle Wrapper | |
uses: gradle/actions/wrapper-validation@v4 | |
- name: π Decrypt keystore | |
run: | | |
echo "${{secrets.KEYSTORE}}" > github_release.jks.asc | |
gpg -d --passphrase "${{secrets.KEYSTORE_FILE_PASSWORD}}" --batch --output github_release.jks github_release.jks.asc | |
- name: π Build | |
run: | | |
./gradlew build | |
- name: π Build release (common key) | |
run: | | |
./gradlew assembleRelease \ | |
--project-prop keyStore.release.storeFile=../github_release.jks \ | |
--project-prop keyStore.release.storePassword=${{secrets.KEYSTORE_PASSWORD}} \ | |
--project-prop keyStore.release.keyAlias=${{secrets.KEYSTORE_KEY_ALIAS_2}} \ | |
--project-prop keyStore.release.keyPassword=${{secrets.KEYSTORE_KEY_PASSWORD_2}} | |
- name: π Rename apk file | |
run: | | |
mv app/build/outputs/apk/release/app-release.apk screenshottile_commit_${{ github.sha }}.apk | |
- name: π Attest | |
uses: actions/attest-build-provenance@v3 | |
with: | |
subject-path: 'screenshottile_commit_${{ github.sha }}.apk' | |
- name: π€ Upload apk | |
uses: actions/upload-artifact@v4 | |
with: | |
name: signed-apk | |
path: screenshottile_commit_${{ github.sha }}.apk | |
- name: π Build release (release key) | |
if: ${{ github.ref_type == 'tag' }} | |
run: | | |
./gradlew assembleRelease \ | |
--project-prop keyStore.release.storeFile=../github_release.jks \ | |
--project-prop keyStore.release.storePassword=${{secrets.KEYSTORE_PASSWORD}} \ | |
--project-prop keyStore.release.keyAlias=${{secrets.KEYSTORE_KEY_ALIAS}} \ | |
--project-prop keyStore.release.keyPassword=${{secrets.KEYSTORE_KEY_PASSWORD}} | |
- name: π¬ Upload Lint report | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: lint-results.html | |
path: app/build/reports/lint-results*.html | |
- name: π·οΈ Extract versionCode | |
if: ${{ github.ref_type == 'tag' }} | |
id: version | |
run: | | |
versionCode=$(grep -Po "versionCode\s+\K[0-9]+" app/build.gradle) | |
echo "versionCode: $versionCode" | |
echo "versionCode=$versionCode" >> $GITHUB_OUTPUT | |
- name: π Rename apk file | |
if: ${{ github.ref_type == 'tag' }} | |
run: | | |
mv app/build/outputs/apk/release/app-release.apk screenshottile_gh_${{ steps.version.outputs.versionCode }}.apk | |
- name: π Attest | |
if: ${{ github.ref_type == 'tag' }} | |
uses: actions/attest-build-provenance@v3 | |
with: | |
subject-path: 'screenshottile_gh_${{ steps.version.outputs.versionCode }}.apk' | |
- name: π€ Upload apk | |
if: ${{ github.ref_type == 'tag' }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: release-apk | |
path: screenshottile_gh_${{ steps.version.outputs.versionCode }}.apk | |
- name: π Publish Github release | |
if: false | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: screenshottile_gh_${{ steps.version.outputs.versionCode }}.apk | |
body_path: fastlane/metadata/android/en-US/changelogs/${{ steps.version.outputs.versionCode }}.txt |