Publish #11
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 | ||
on: | ||
release: | ||
types: [ created ] | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version' | ||
required: true | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
- name: Publish Artifact | ||
env: | ||
RELEASE_TAG_NAME: ${{ github.event.inputs.version }} | ||
OSS_USERNAME: ${{ secrets.OSS_USERNAME }} | ||
OSS_PASSWORD: ${{ secrets.OSS_PASSWORD }} | ||
OSS_STAGING_PROFILE_ID: ${{ secrets.OSS_STAGING_PROFILE_ID }} | ||
OSS_SIGNING_KEY_ID: ${{ secrets.OSS_SIGNING_KEY_ID }} | ||
OSS_SIGNING_PASSWORD: ${{ secrets.OSS_SIGNING_PASSWORD }} | ||
OSS_SIGNING_KEY: ${{ secrets.OSS_SIGNING_KEY }} | ||
run: | | ||
Check failure on line 33 in .github/workflows/publish.yml GitHub Actions / PublishInvalid workflow file
|
||
run: echo "${{ RELEASE_TAG_NAME }}" | ||
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --stacktrace |