name: Gradle publish on: workflow_dispatch: release: types: [ created ] jobs: build: runs-on: ubuntu-latest timeout-minutes: 40 steps: - uses: actions/checkout@v3.0.0 - uses: actions/setup-java@v3.0.0 with: java-version: 11 distribution: liberica - uses: gradle/gradle-build-action@v2.1.5 with: arguments: | publishAllPublicationsToSpaceRepository -Ppublishing.space.user=${{ secrets.SPACE_APP_ID }} -Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}