Skip to content

Update README.md

Update README.md #25

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/setup-java@v4
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
- name: Release
if: startsWith(github.ref, 'refs/tags/v')
id: create_release
uses: softprops/[email protected]
with:
files: |
tool/target/fido.jar
fail_on_unmatched_files: true
body: Release ${{ github.ref_name }}
prerelease: true # manually promoted