feat: added custom command types: GREEDY_STRING and TIME for Velocity… #18
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 CommandBridge | |
| on: | |
| push: | |
| branches: [ "v3", "main", "master" ] | |
| pull_request: | |
| branches: [ "v3", "main", "master" ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Get Short SHA | |
| id: slug | |
| run: echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT | |
| - name: Make gradlew executable | |
| run: chmod +x ./gradlew | |
| - name: Build with Gradle | |
| run: ./gradlew shadowJar -PbuildVersion="dev-${{ steps.slug.outputs.sha8 }}" --no-daemon | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: CommandBridge-dev-${{ steps.slug.outputs.sha8 }} | |
| path: dist/build/libs/CommandBridge-*-all.jar | |
| if-no-files-found: error | |
| retention-days: 60 |