Skip to content

Merge branch 'hotfix-dockerhub-workflow' #3

Merge branch 'hotfix-dockerhub-workflow'

Merge branch 'hotfix-dockerhub-workflow' #3

Workflow file for this run

name: artifact
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: setup java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: cache maven dependencies
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven
- name: build JAR
run: mvn clean package -DskipTests
- name: upload maven artifact
uses: actions/upload-artifact@v4
with:
name: API-Catalogo
path: target/*.jar