Update README.md #55
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
on: | |
push: | |
branches: | |
- master | |
- next | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- master | |
name: Build robot | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
java: [ 11, 17, 21 ] | |
name: Java ${{ matrix.java }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: zulu | |
cache: maven | |
- run: ./mvnw -P exe -B -U -T1C verify | |
- name: Release | |
if: startsWith(github.ref, 'refs/tags/v') && matrix.java == '11' | |
id: create_release | |
uses: softprops/[email protected] | |
with: | |
files: | | |
tool/target/gp.jar | |
tool/target/gp.exe | |
fail_on_unmatched_files: true | |
body: Release ${{ github.ref_name }} | |
prerelease: true # manually promoted | |
- name: Set SSH key | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_KEY }} | |
- name: Add known host key | |
run: ssh-keyscan javacard.pro >> ~/.ssh/known_hosts | |
- name: Deploy package | |
if: (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/master') && matrix.java == '11' | |
run: ./mvnw -B deploy |