Skip to content

Bump actions/setup-java from 3.6.0 to 4.5.0 #22

Bump actions/setup-java from 3.6.0 to 4.5.0

Bump actions/setup-java from 3.6.0 to 4.5.0 #22

Workflow file for this run

on:
push:
branches:
- main
- next
pull_request:
branches:
- main
name: Build robot
jobs:
build:
runs-on: ubuntu-24.04
name: Build and deploy
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0
- name: Set SSH key
if: (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/main')
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY }}
- name: Add known host key
if: (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/main')
run: ssh-keyscan javacard.pro >> ~/.ssh/known_hosts
- name: Setup java
uses: actions/[email protected]
with:
java-version: 17
distribution: zulu
cache: maven
- name: Compile and verify
run: ./mvnw -U -B -T1C verify
- name: Deploy snapshot
if: (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/main')
run: ./mvnw -B deploy