Skip to content

Release onboarding sdk #94

Release onboarding sdk

Release onboarding sdk #94

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 }}