Skip to content

readme updated with additional zb info #9

readme updated with additional zb info

readme updated with additional zb info #9

Workflow file for this run

name: release
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '25'
- name: Extract version
id: version
run: echo "version=$(cat src/main/resources/version.txt | tr -d '[:space:]')" >> "$GITHUB_OUTPUT"
- name: Fetch zb
run: java --source 25 zbinstall
- name: Build
run: java -jar zb.jar
- name: Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cp zbo/app.jar zb.jar
gh release create "v${{ steps.version.outputs.version }}.${{ github.run_number }}" \
--target "$GITHUB_SHA" \
--title "zb ${{ steps.version.outputs.version }} (build ${{ github.run_number }})" \
--generate-notes \
zb.jar src/main/sh/zb.sh