Merge pull request #29 from heig-lherman/correction_readme #21
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: Build and Publish Snapshot Artifacts | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Verify with Maven | |
run: |- | |
mvn --batch-mode --update-snapshots package -Pdocker-snapshot \ | |
-Djib.to.auth.username=${{ github.actor }} \ | |
-Djib.to.auth.password=${{ secrets.GITHUB_TOKEN }} | |
- name: Publish artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Compiled JAR | |
path: | | |
target/*.jar |