calculator agent example implemented #15
This file contains hidden or 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
| name: Build and Release | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '25' | |
| - name: Extract version | |
| id: version | |
| run: echo "version=$(cat zsmith/version.txt)" >> "$GITHUB_OUTPUT" | |
| - name: Fetch zb | |
| run: curl -fL -o zb.jar https://github.com/AdamBien/zb/releases/latest/download/zb.jar | |
| - name: Build | |
| working-directory: zsmith | |
| run: java -jar ../zb.jar | |
| - name: Create Release | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh release create "v${{ steps.version.outputs.version }}.${{ github.run_number }}" \ | |
| zsmith/zbo/zsmith.jar \ | |
| --title "zsmith ${{ steps.version.outputs.version }} (build ${{ github.run_number }})" \ | |
| --generate-notes |