Skip to content

fix lint

fix lint #11

Workflow file for this run

name: Publish a new Release
on:
push:
tags:
- '2.*'
workflow_dispatch:
inputs:

Check failure on line 8 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
tag:
required: true
type: string
description: 'Tag to use for the release and changelog'
- '2.*'
concurrency:
group: "publish"
cancel-in-progress: true
jobs:
publish:
runs-on: macos-latest
environment: publishing
steps:
- 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: 21
cache: 'gradle'
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest
- name: Create local properties
env:
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }}
run: echo "$LOCAL_PROPERTIES" > local.properties
- name: Publish to sonatype
env:
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
# It's important to not upload in parallel or duplicate repos will be created
# repository creds are broken with gradle 8.6 https://github.com/gradle/gradle/issues/24040
run: ./gradlew publishAllPublicationsToSonatypeRepository -Dorg.gradle.parallel=false --stacktrace --no-configuration-cache
- name: Generate Changelog
uses: mikepenz/release-changelog-builder-action@v4
id: build_changelog
with:
commitMode: true
configuration: ".github/changelog_config.json"
- name: Create GH release
uses: ncipollo/[email protected]
id: create_release
with:
draft: true
artifactErrorsFailBuild: true
prerelease: false
body: ${{steps.build_changelog.outputs.changelog}}
tag: ${{ inputs.tag != '' && inputs.tag || github.ref_name }}
env:
GITHUB_TOKEN: ${{ github.token }}