Workflow file for this run
This file contains hidden or 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 Java Libraries to Maven Central | |
| on: | |
| release: | |
| types: [created] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '11' | |
| distribution: 'temurin' | |
| - name: Extract version | |
| id: extract_version | |
| run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV | |
| - name: Build and publish all modules | |
| run: | | |
| bash publish_to_repsy.sh ${{ env.VERSION }} | |
| env: | |
| REPSY_USERNAME: ${{ secrets.REPSY_USERNAME }} | |
| REPSY_PASSWORD: ${{ secrets.REPSY_PASSWORD }} |