Skip to content

Two command in one line #41

Two command in one line

Two command in one line #41

Workflow file for this run

name: OSSRH
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'zulu'
cache: gradle
# - name: Check release validity
# run: bash .github/scripts/check-release.sh
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Archive test report
uses: actions/upload-artifact@v3
if: failure()
with:
name: Test report
path: build/reports/tests/test
if-no-files-found: ignore
- name: Decode secring.gpg
run: |
echo "${{secrets.SIGNING_SECRET_KEY_RING_FILE}}" > ~/.gradle/secring.gpg.b64
base64 -d ~/.gradle/secring.gpg.b64 > ~/.gradle/secring.gpg
- name: Publish, close and release Nexus Repository
run: ./gradlew publishToSonatype closeAndReleaseStagingRepository -Psigning.keyId=${{secrets.SIGNING_KEY_ID}} -Psigning.password=${{secrets.SIGNING_PASSWORD}} -Psigning.secretKeyRingFile=$(echo ~/.gradle/secring.gpg)
env:
OSSRH_USERNAME: ${{secrets.OSSRH_USERNAME}}
OSSRH_PASSWORD: ${{secrets.OSSRH_PASSWORD}}
SONATYPE_STAGING_PROFILE_ID: ${{secrets.SONATYPE_STAGING_PROFILE_ID}}
# - name: Close and release Nexus Repository
# run: ./gradlew closeAndReleaseStagingRepository --debug
# env:
# OSSRH_USERNAME: ${{secrets.OSSRH_USERNAME}}
# OSSRH_PASSWORD: ${{secrets.OSSRH_PASSWORD}}
# SONATYPE_STAGING_PROFILE_ID: ${{secrets.SONATYPE_STAGING_PROFILE_ID}}