Skip to content

feat: trigger deployment pipeline #9

feat: trigger deployment pipeline

feat: trigger deployment pipeline #9

name: "Build and publish"
on:
push:
branches:
- "main"
- "pr-2"
jobs:
build_and_publish:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v3"
- name: "Setup java"
uses: "actions/setup-java@v3"
with:
java-version: "8"
distribution: "temurin"
- name: "Maven cache"
uses: "actions/cache@v3"
with:
path: "~/.m2/repository"
key: "${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}"
restore-keys: |
${{ runner.os }}-maven-
- name: "Maven build"
run: |
mvn -B package --file pom.xml -X
ls -lah
- name: "Upload build artifact"
uses: "actions/upload-artifact@v3"
with:
name: "poc"
path: "*.jar"