Publish to Glare Repo #41
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 to Glare Repo | |
| on: | |
| workflow_dispatch: | |
| workflow_run: | |
| workflows: ["Deploy Pre-release"] | |
| types: | |
| - completed | |
| jobs: | |
| deploy_to_glare_repo: | |
| runs-on: ubuntu-latest | |
| name: mvn deploy @ glare repo | |
| steps: | |
| - name: checkout repo content | |
| uses: actions/checkout@v3 # checkout the repository content to github runner. | |
| - name: set up eclipse temurin | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '25' | |
| java-package: jdk | |
| cache: 'maven' | |
| - name: prepare maven settings.xml | |
| uses: s4u/maven-settings-action@v2.8.0 | |
| with: | |
| githubServer: false | |
| servers: | | |
| [{ | |
| "id": "nexus", | |
| "username": "${{ secrets.GLAREREPO_USERNAME }}", | |
| "password": "${{ secrets.GLAREREPO_PASSWORD }}" | |
| }] | |
| - name: deploy to glaremaster | |
| run: mvn deploy |