Skip to content

ci: create workflows for doing github releases #11

ci: create workflows for doing github releases

ci: create workflows for doing github releases #11

Workflow file for this run

name: Create a GitHub release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
maven:
name: Maven
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Setup SoftHSM
run: |
apt install softhsm2
SLOT_ID=$(softhsm2-util --init-token --free --label "test" --pin 1234 --so-pin 1234 | tail -n 1 | awk '{ print $NF }')
export JACKNJI11_TEST_TESTSLOT="$SLOT_ID"
export JACKNJI11_TEST_INITSLOT="$SLOT_ID"
export JACKNJI11_TEST_USER_PIN=1234
export JACKNJI11_TEST_SO_PIN=1234
export JACKNJI11_PKCS11_LIB_PATH=/usr/lib64/libsofthsm2.so
- name: Build and test
run: mvn package
- name: Release
uses: softprops/action-gh-release@v1
with:
files: target/*.jar