Skip to content

1.0.4

1.0.4 #19

Workflow file for this run

name: Release
on:
release:
types: [released, edited]
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVENCENTRALUSERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVENCENTRALPASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNINGINMEMORYKEY }}
jobs:
build-multiplatform-project:
environment: release
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
gradle: [8.3]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- id: get_version
name: Get version
uses: jannemattila/get-version-from-tag@v3
- name: Display version
run: |
export PUBLISH_VERSION=$(echo "${{ steps.get_version.outputs.version }}")
echo $PUBLISH_VERSION
- name: Build and publish
shell: bash
env:
FLAVOR: 1.9.23
PUBLISH_VERSION: ${{ steps.get_version.outputs.version }}
run: |
gradle sample:check --refresh-dependencies
gradle ktorfit-koin:publishAllPublicationsToMavenCentralRepository
gradle lib:publishAllPublicationsToMavenCentralRepository
- name: Build and publish
shell: bash
env:
FLAVOR: 2.0-RC1
PUBLISH_VERSION: ${{ steps.get_version.outputs.version }}
run: |
gradle sample:check --refresh-dependencies
gradle ktorfit-koin:publishAllPublicationsToMavenCentralRepository
gradle lib:publishAllPublicationsToMavenCentralRepository