generated from pagopa/pagopa-functions-template
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (36 loc) · 1.12 KB
/
release_onboarding_sdk.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Release onboarding sdk
on:
push:
branches:
- main
paths:
- './libs/**'
workflow_dispatch:
jobs:
setup:
name: Release
runs-on: ubuntu-20.04
permissions:
packages: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # 4.1.1
with:
ref: ${{ github.ref_name }}
- name: Set up JDK 17
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # pin@v3
with:
distribution: 'temurin'
java-version: '17'
cache: maven
- uses: s4u/maven-settings-action@60912582505985be4cc55d2b890eb32767f8de5f # pin@v2.8.0
with:
servers: '[{"id": "selfcare-github", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}"}]'
- name: Build with Maven
shell: bash
run: mvn --projects :onboarding-libs --also-make-dependents clean package -DskipTests
- name: Deploy to GitHub Package Registry
shell: bash
run: |
mvn -B deploy -f libs/pom.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}