update release notes #14
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: Android Build and Publish | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| tags: | |
| - 'v*' # Trigger on new tags (e.g., v1.0.0) | |
| workflow_dispatch: | |
| inputs: | |
| reason: | |
| description: Why did you trigger this workflow run manually? | |
| required: true | |
| default: Needing a new build. | |
| type: string | |
| tag: | |
| description: Which tag to build from? | |
| required: true | |
| default: v0.0.14 | |
| type: string | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| env: | |
| WWWALLET_ANDROID_KEY_ALIAS: ${{ secrets.WWWALLET_ANDROID_KEY_ALIAS }} | |
| WWWALLET_ANDROID_RELEASE_KEY_ALIAS: ${{ secrets.WWWALLET_ANDROID_RELEASE_KEY_ALIAS }} | |
| WWWALLET_ANDROID_KEY_PASSWORD: ${{ secrets.WWWALLET_ANDROID_KEY_PASSWORD }} | |
| WWWALLET_ANDROID_STORE_PASSWORD: ${{ secrets.WWWALLET_ANDROID_STORE_PASSWORD }} | |
| WWWALLET_ANDROID_STORE_B64: ${{ secrets.WWWALLET_ANDROID_STORE_B64 }} | |
| WWWALLET_ANDROID_HOST: ${{ secrets.WWWALLET_ANDROID_HOST }} | |
| steps: | |
| - name: Update ubuntu | |
| run: sudo apt-get update | |
| - name: Install Android SDK | |
| run: sudo apt-get install -y android-sdk | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Code Style | |
| run: ./gradlew ktlintCheck | |
| - name: Test | |
| run: ./gradlew assemble check | |
| - name: Fingerprints | |
| run: ./gradlew checkFingerPrints | |
| - name: Create release notes | |
| run: ./gradlew createReleaseNotes | |
| - name: Create GitHub release | |
| id: create_release | |
| uses: comnoco/create-release-action@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ inputs.tag || github.ref }} | |
| release_name: Release ${{ github.ref_name }} | |
| body_path: .release-note.md | |
| - name: Upload Release APK | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./wrapper/build/outputs/apk/release/wrapper-release.apk | |
| asset_name: wwwallet-${{ github.ref_name }}.apk | |
| asset_content_type: application/vnd.android.package-archive | |
| - name: Upload Debug APK | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./wrapper/build/outputs/apk/debug/wrapper-debug.apk | |
| asset_name: wwwallet-debug-${{ github.ref_name }}.apk | |
| asset_content_type: application/vnd.android.package-archive |