Merge pull request #138 from solrudev/develop #31
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: github-release | |
| on: | |
| push: | |
| tags: | |
| - "[0-9]+.[0-9]+.[0-9]+*" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: Build Ackpine | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Setup environment | |
| uses: ./.github/actions/setup-gradle-environment-action | |
| with: | |
| gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
| - name: Validate binary compatibility | |
| run: | | |
| ./gradlew apiCheck || { exit_code=$?; printf "*** This PR changes Ackpine's public API. If this is intentional, run './gradlew apiDump' and commit the new API dumps. ***"; exit $exit_code; } | |
| - name: Build | |
| run: | | |
| ./gradlew :buildAckpine --stacktrace | |
| release-samples: | |
| name: Release samples | |
| runs-on: ubuntu-latest | |
| needs: [ build ] | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Setup environment | |
| uses: ./.github/actions/setup-gradle-environment-action | |
| with: | |
| gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
| - name: Decode key store | |
| run: | | |
| echo $APP_SIGNING_KEY_STORE > encoded-keystore.txt | |
| base64 -d encoded-keystore.txt > $APP_SIGNING_KEY_STORE_PATH | |
| env: | |
| APP_SIGNING_KEY_STORE: ${{ secrets.APP_SIGNING_KEY_STORE }} | |
| APP_SIGNING_KEY_STORE_PATH: ${{ secrets.APP_SIGNING_KEY_STORE_PATH }} | |
| - name: Build samples | |
| run: | | |
| ./gradlew :buildSamples --stacktrace | |
| env: | |
| APP_SIGNING_KEY_ALIAS: ${{ secrets.APP_SIGNING_KEY_ALIAS }} | |
| APP_SIGNING_KEY_PASSWORD: ${{ secrets.APP_SIGNING_KEY_PASSWORD }} | |
| APP_SIGNING_KEY_STORE_PASSWORD: ${{ secrets.APP_SIGNING_KEY_STORE_PASSWORD }} | |
| APP_SIGNING_KEY_STORE_PATH: ${{ secrets.APP_SIGNING_KEY_STORE_PATH }} | |
| - name: Extract release changelog | |
| run: | | |
| ./gradlew :releaseChangelog | |
| - name: Create GitHub release | |
| run: | | |
| gh release create ${{ github.ref_name }} release/* --title ${{ github.ref_name }} --notes-file changelog.txt | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |