GH-464 - Upgrade to jMolecules 2023.2.1. #120
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy Maven artifacts | |
on: | |
push: | |
branches: | |
- 'main' | |
- '7.2.*' | |
- '7.3.*' | |
jobs: | |
build: | |
name: Build and deploy Maven artifacts | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
cache: 'maven' | |
- name: Build with Maven | |
run: ./mvnw -B verify --file pom.xml | |
- name: Create settings.xml | |
uses: whelk-io/maven-settings-xml-action@v20 | |
with: | |
servers: '[{ "id": "salespoint", "username": "${env.FTP_USER}", "password": "${env.FTP_PASSWORD}" }]' | |
- name: Add TU Dresden to known hosts | |
env: | |
KNOWN_HOSTS: ${{secrets.KNOWN_HOSTS}} | |
run: | | |
mkdir -p ~/.ssh/ | |
echo "$KNOWN_HOSTS" > ~/.ssh/known_hosts | |
- name: Deploy artifacts | |
env: | |
FTP_USER: ${{ secrets.FTP_USER }} | |
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }} | |
run: ./mvnw -B deploy -DskipTests --file pom.xml |