Skip to content

test log

test log #18

Workflow file for this run

name: Build & Release to Maven Central
on:
push:
branches:
- develop
tags:
- 'v*.*.*'
pull_request:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
env:
JVM_OPTS: -Xmx4800m
steps:
- name: Checkout
uses: actions/[email protected]
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build
env:
VERSION_NAME: ${{ env.version_name }}
run: ./gradlew assemble
- name: Lint Release
run: |

Check failure on line 35 in .github/workflows/mc-release.yml

View workflow run for this annotation

GitHub Actions / Build & Release to Maven Central

Invalid workflow file

The workflow is not valid. .github/workflows/mc-release.yml (Line: 35, Col: 14): Unexpected symbol: 'refs/pull/*/merge'. Located at position 15 within expression: github.ref == refs/pull/*/merge
echo ${{ github.ref == refs/pull/*/merge }}
./gradlew lintRelease
- name: Deploy To Maven Central
run: |
echo ${{ secrets.MAVEN_CENTRAL_SEC_RING }} | base64 -d > $HOME/secring.gpg
gpg --import --batch $HOME/secring.gpg
./gradlew clean publish \
-PmavenCentralUsername="${{ secrets.SONATYPE_USERNAME }}" \
-PmavenCentralPassword="${{ secrets.SONATYPE_PASSWORD }}" \
-Psigning.keyId="${{ secrets.MAVEN_CENTRAL_KEY_ID }}" \
-Psigning.password="${{ secrets.MAVEN_CENTRAL_KEY_PASSPHRASE }}" \
-Psigning.secretKeyRingFile=$HOME/secring.gpg \
-Porg.gradle.parallel=false \
-Porg.gradle.daemon=false \
--no-daemon
if: ${{ success() && github.ref == 'refs/tags/v*.*.*' }}
- name: Create Github Release
uses: marvinpinto/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
if: ${{ success() && github.ref == 'refs/tags/v*.*.*' }}