Skip to content

FixWorkFlow

FixWorkFlow #2

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
paths-ignore:
- "**.md"
- "renovate.json"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up JDK 16
uses: actions/setup-java@v4
with:
java-version: '16'
distribution: 'corretto'
server-id: azisaba
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Prepare settings.xml
run: |
echo "<settings><servers><server><id>azisaba</id><username>${{ secrets.REPO_USERNAME }}</username><password>${{ secrets.REPO_PASSWORD }}</password></server></servers></settings>" > $HOME/.m2/settings.xml
- name: Deploy
run: mvn deploy