Skip to content

Release

Release #10

Workflow file for this run

name: Release
on:
release:
types: [released]
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVENCENTRALUSERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVENCENTRALPASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNINGINMEMORYKEY }}
PUBLISH_VERSION: ${{ steps.get_version.outputs.version }}

Check failure on line 10 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 10, Col: 20): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.get_version.outputs.version
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
run: |
gradle sample:check
gradle ktorfit-koin:publishAllPublicationsToMavenCentralRepository
- name: Build and publish
shell: bash
env:
FLAVOR: 2.0-RC1
run: |
gradle sample:check
gradle ktorfit-koin:publishAllPublicationsToMavenCentralRepository