Skip to content

add ability to pass auth #40

add ability to pass auth

add ability to pass auth #40

Workflow file for this run

name: Publish Library to Space
on:
push:
branches:
- master # only publish when master gets new commits
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # tag: v4
- name: Set up JDK
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # tag: v4
with:
distribution: 'temurin'
java-version: '21'
- name: Set up Gradle
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # tag: v2
- name: Clean Build with Gradle
run: ./gradlew clean build
- name: Publish to Space
run: ./gradlew publishAllPublicationsToSpaceRepository
env:
SPACE_USERNAME: ${{ secrets.SPACE_USERNAME }}
SPACE_PASSWORD: ${{ secrets.SPACE_PASSWORD }}
GITHUB_RUN_NUMBER: ${{ github.run_number }}