3.1.0 (#123) #82
Workflow file for this run
This file contains 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: Publish a new Release | |
on: | |
push: | |
tags: | |
- '3.*' | |
workflow_dispatch: | |
inputs: | |
tag: | |
required: true | |
type: string | |
description: 'Tag to use for the release and changelog' | |
concurrency: | |
group: "publish" | |
cancel-in-progress: true | |
jobs: | |
debugger-macos: | |
uses: ./.github/workflows/desktop-macos.yml | |
debugger-linux: | |
uses: ./.github/workflows/desktop-linux.yml | |
debugger-win: | |
uses: ./.github/workflows/desktop-win.yml | |
publish: | |
# needs: [ debugger-macos, debugger-linux, debugger-win ] | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Copy CI gradle.properties | |
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
check-latest: true | |
java-version: 22 | |
cache: 'gradle' | |
- name: Validate gradle wrapper | |
uses: gradle/actions/wrapper-validation@v4 | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest | |
- name: Create local properties | |
env: | |
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }} | |
run: echo "$LOCAL_PROPERTIES" | base64 --decode > local.properties | |
- name: Cache konan directory | |
uses: actions/cache@v4 | |
with: | |
path: ~/.konan | |
key: ${{ runner.os }}-konan-${{ hashFiles('*.gradle.kts', 'buildSrc/*') }} | |
restore-keys: | | |
${{ runner.os }}-konan- | |
- name: Assemble android sample | |
run: ./gradlew :sample:assembleRelease | |
- name: Publish to sonatype | |
env: | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} | |
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} | |
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }} | |
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} | |
run: ./gradlew publishToMavenCentral --no-configuration-cache | |
- name: Generate Changelog | |
uses: mikepenz/release-changelog-builder-action@v5 | |
id: build_changelog | |
with: | |
commitMode: true | |
configuration: ".github/changelog_config.json" | |
- name: Publish new plugin version | |
run: ./gradlew debugger:ideplugin:publishPlugin --no-configuration-cache | |
env: | |
CHANGELOG: ${{steps.build_changelog.outputs.changelog}} | |
# TODO: Use matrix strat and attach artifacts to the release | |
- name: Create GH release | |
uses: ncipollo/release-action@v1.14.0 | |
id: create_release | |
with: | |
draft: true | |
artifactErrorsFailBuild: true | |
prerelease: false | |
artifacts: sample/build/outputs/apk/release/pro.respawn.flowmvi.sample.apk | |
body: ${{steps.build_changelog.outputs.changelog}} | |
tag: ${{ inputs.tag != '' && inputs.tag || github.ref_name }} | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |