Publish to Glare Repo #16
This file contains 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: | |
jobs: | |
deploy_to_glare_repo: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: ['21'] | |
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: ${{ matrix.java }} | |
java-package: jdk | |
cache: 'maven' | |
- name: maven-settings-action | |
uses: s4u/[email protected] | |
with: | |
githubServer: false | |
servers: | | |
[{ | |
"id": "nexus", | |
"username": "${{ secrets.GLAREREPO_USERNAME }}", | |
"password": "${{ secrets.GLAREREPO_PASSWORD }}" | |
}] | |
- run: mvn deploy |