Fix Grill failure exit codes (#78) #37
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: Deploy Pipeline | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| name: Build and Deploy Grill | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 25 | |
| distribution: temurin | |
| - name: Grant Gradle permissions | |
| run: chmod +x ./gradlew | |
| - name: Run tests | |
| run: ./gradlew test | |
| - name: Build WurstSetup fat jar | |
| run: ./gradlew clean versionInfoFile dist | |
| - name: Create or update nightly-master tag | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git tag -f nightly-master | |
| git push -f origin nightly-master | |
| - name: Create GitHub Release and upload jar | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: nightly-master | |
| name: Nightly Build (master) | |
| body: "Auto-published from the latest push to `master`." | |
| draft: false | |
| prerelease: true | |
| files: build/libs/WurstSetup.jar | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |