Merge pull request #212 from project-husky/master #12
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
# this workflow will deploy SNAPSHOT on pushes to develop branch | |
name: Java CI with Maven | |
on: | |
push: | |
branches: [ develop, develop-3.x ] | |
jobs: | |
build: | |
name: Deploy SNAPSHOT | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'java' ] | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build and test with Maven | |
env: | |
ARTF_USER: ${{ secrets.ARTF_USER }} | |
ARTF_PASS: ${{ secrets.ARTF_PASS }} | |
run: mvn clean install deploy --batch-mode --no-transfer-progress --file pom.xml -s $GITHUB_WORKSPACE/settings.xml | |