add release script for pcgcli #1
Workflow file for this run
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: Partitioned Consumer Groups CLI Release | |
| on: | |
| push: | |
| tags: [ 'pcgcli/*' ] | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| defaults: | |
| run: | |
| working-directory: ./pcgroups | |
| steps: | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Build distribution | |
| run: chmod +x gradlew && ./gradlew :pcgroups-cli:clean :pcgroups-cli:dist | |
| - name: Upload release assets | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| CLI_BUILD="../pcgroups-cli/build" | |
| gh release upload "${{ github.ref_name }}" \ | |
| "$CLI_BUILD/cg.jar" \ | |
| "$CLI_BUILD/cg.tar" \ | |
| --clobber |