Skip to content

Merge pull request #26 from heig-lherman/ansible-deploy #18

Merge pull request #26 from heig-lherman/ansible-deploy

Merge pull request #26 from heig-lherman/ansible-deploy #18

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