mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-28 02:18:50 +00:00
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 6.0.0 to 6.1.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/release-drafter/release-drafter/releases">release-drafter/release-drafter's releases</a>.</em></p> <blockquote> <h2>v6.1.0</h2> <h1>What's Changed</h1> <h2>New</h2> <ul> <li>Add config option for PR query limit (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1362">#1362</a>) <a href="https://github.com/ssolbeck"><code>@ssolbeck</code></a></li> </ul> <h2>Bug Fixes</h2> <ul> <li>Fix: Correctly mention bot accounts in release notes (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1376">#1376</a>) <a href="https://github.com/jamietanna"><code>@jamietanna</code></a></li> <li>Update only drafts with the same prerelease status (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1385">#1385</a>) <a href="https://github.com/jaap3"><code>@jaap3</code></a></li> </ul> <h2>Documentation</h2> <ul> <li>docs: Fix Fork Link (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1412">#1412</a>) <a href="https://github.com/Dor-bl"><code>@Dor-bl</code></a></li> <li>Ensure support new default branch name (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1079">#1079</a>) <a href="https://github.com/Triloworld"><code>@Triloworld</code></a></li> <li>update schema generation and update schema to draft 07 (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1422">#1422</a>) <a href="https://github.com/jetersen"><code>@jetersen</code></a></li> <li>fix typo: therelease (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1407">#1407</a>) <a href="https://github.com/billykern"><code>@billykern</code></a></li> <li>Document added action outputs introduced in <a href="https://redirect.github.com/release-drafter/release-drafter/issues/1300">#1300</a> (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1406">#1406</a>) <a href="https://github.com/SVNKoch"><code>@SVNKoch</code></a></li> <li>Update README.md (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1421">#1421</a>) <a href="https://github.com/yusufraji"><code>@yusufraji</code></a></li> <li>fix: update broken link in readme (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1416">#1416</a>) <a href="https://github.com/kopach"><code>@kopach</code></a></li> <li>Update v6 README.md (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1384">#1384</a>) <a href="https://github.com/taku333"><code>@taku333</code></a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/release-drafter/release-drafter/compare/v6.0.0...v6.1.0">https://github.com/release-drafter/release-drafter/compare/v6.0.0...v6.1.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="b1476f6e6e"><code>b1476f6</code></a> v6.1.0</li> <li><a href="d7328d2775"><code>d7328d2</code></a> Add config option for pull-request-limit (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1362">#1362</a>)</li> <li><a href="5faffa9238"><code>5faffa9</code></a> docs: Fix Fork Link (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1412">#1412</a>)</li> <li><a href="a9142316e1"><code>a914231</code></a> Ensure support new main branch name (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1079">#1079</a>)</li> <li><a href="d6eceacd0b"><code>d6eceac</code></a> Fix: Correctly mention bot accounts in release notes (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1376">#1376</a>)</li> <li><a href="41c11a26b9"><code>41c11a2</code></a> update schema generation and update schema to draft 07 (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1422">#1422</a>)</li> <li><a href="8296e405c2"><code>8296e40</code></a> fix typo: therelease (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1407">#1407</a>)</li> <li><a href="0ad4f70155"><code>0ad4f70</code></a> Document action outputs introduced in <a href="https://redirect.github.com/release-drafter/release-drafter/issues/1300">#1300</a> (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1406">#1406</a>)</li> <li><a href="378bacb075"><code>378bacb</code></a> Update README.md (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1421">#1421</a>)</li> <li><a href="c139411053"><code>c139411</code></a> Update only drafts with the same prerelease status (<a href="https://redirect.github.com/release-drafter/release-drafter/issues/1385">#1385</a>)</li> <li>Additional commits viewable in <a href="3f0f87098b...b1476f6e6e">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
121 lines
4.5 KiB
YAML
121 lines
4.5 KiB
YAML
name: Kotlin
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: ./kotlin/android
|
|
|
|
permissions:
|
|
contents: "read"
|
|
id-token: "write"
|
|
|
|
jobs:
|
|
static-analysis:
|
|
# Android SDK tools hardware accel is available only on Linux runners
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- uses: ./.github/actions/setup-android
|
|
- name: Run linter
|
|
run: ./gradlew spotlessCheck
|
|
|
|
build_release:
|
|
permissions:
|
|
contents: write # for uploading artifacts to the release
|
|
id-token: write
|
|
name: build-release-${{ matrix.package-type }}
|
|
# Android SDK tools hardware accel is available only on Linux runners
|
|
runs-on: ubuntu-22.04
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- package-type: aab
|
|
build-command: "./gradlew bundleRelease"
|
|
output-path: app/build/outputs/bundle/release/app-release.aab
|
|
- package-type: apk
|
|
build-command: "./gradlew assembleRelease"
|
|
output-path: app/build/outputs/apk/release/app-release.apk
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
fetch-tags: true # Otherwise we cannot embed the correct version into the build.
|
|
- uses: ./.github/actions/setup-android
|
|
- name: Build the release package
|
|
env:
|
|
KEYSTORE_BASE64: ${{ secrets.GOOGLE_UPLOAD_KEYSTORE_BASE64 }}
|
|
KEYSTORE_PASSWORD: ${{ secrets.GOOGLE_UPLOAD_KEYSTORE_PASSWORD }}
|
|
KEYSTORE_KEY_PASSWORD: ${{ secrets.GOOGLE_UPLOAD_KEYSTORE_KEY_PASSWORD }}
|
|
run: |
|
|
KEYSTORE_PATH="$(pwd)/app/keystore.jks"
|
|
echo -n "$KEYSTORE_BASE64" | base64 --decode > "$KEYSTORE_PATH"
|
|
${{ matrix.build-command }}
|
|
rm "$KEYSTORE_PATH"
|
|
- name: Run Unit Test
|
|
run: |
|
|
./gradlew testReleaseUnitTest
|
|
- name: Upload package artifacts
|
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
|
with:
|
|
name: Android ${{ matrix.package-type }}
|
|
path: |
|
|
./kotlin/android/${{ matrix.output-path }}
|
|
- name: Upload package to release
|
|
if: ${{ matrix.package-type == 'apk' && github.event_name == 'workflow_dispatch' }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
# mark:next-android-version
|
|
RELEASE_NAME: android-client-1.4.2
|
|
run: |
|
|
export ARTIFACT_PATH="$RUNNER_TEMP/firezone-${RELEASE_NAME}.${{ matrix.package-type }}"
|
|
cp "${{ matrix.output-path }}" "$ARTIFACT_PATH"
|
|
../../scripts/upload/github-release.sh
|
|
- name: Distribute release to Firebase App Distribution
|
|
if: ${{ matrix.package-type == 'aab' && github.event_name == 'workflow_dispatch' }}
|
|
env:
|
|
FIREBASE_APP_DISTRIBUTION_CREDENTIALS: ${{ secrets.FIREBASE_APP_DISTRIBUTION_CREDENTIALS }}
|
|
FIREBASE_CREDENTIALS_PATH: firebase-credentials.json
|
|
FIREBASE_APP_TESTERS: ${{ vars.FIREBASE_APP_TESTERS }}
|
|
run: |
|
|
echo -n "$FIREBASE_APP_DISTRIBUTION_CREDENTIALS" > $FIREBASE_CREDENTIALS_PATH
|
|
./gradlew appDistributionUploadRelease uploadCrashlyticsSymbolFileRelease
|
|
|
|
update-release-draft:
|
|
name: update-release-draft
|
|
needs: build_release
|
|
runs-on: ubuntu-22.04
|
|
env:
|
|
# mark:next-android-version
|
|
RELEASE_NAME: android-client-1.4.2
|
|
steps:
|
|
- uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
|
|
if: "${{ github.event_name == 'workflow_dispatch' && github.ref_name == 'main' }}"
|
|
id: update-release-draft
|
|
with:
|
|
config-name: release-drafter-android-client.yml
|
|
tag: ${{ env.RELEASE_NAME }}
|
|
version: ${{ env.RELEASE_NAME }}
|
|
name: ${{ env.RELEASE_NAME }}
|
|
commitish: ${{ github.sha }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
build_debug:
|
|
# Android SDK tools hardware accel is available only on Linux runners
|
|
runs-on: ubuntu-22.04
|
|
name: build-debug
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- uses: ./.github/actions/setup-android
|
|
- name: Build debug APK
|
|
run: |
|
|
./gradlew assembleDebug
|
|
- name: Upload debug APK
|
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
|
with:
|
|
name: Android debug APK
|
|
path: |
|
|
./kotlin/android/app/build/outputs/apk/*
|