Bump com.install4j.gradle from 12.0 to 12.0.1 (#13917) #727
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: Package and Upload Game Installers | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/upload-game-installers.yml' | |
| - 'build.gradle' | |
| - 'game-app/**' | |
| - 'http-clients/**' | |
| - 'lib/**' | |
| - 'servers/*/client/**' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| jobs: | |
| build: | |
| runs-on: Ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| # Fetch depth of 0 is needed so we checkout the full revision history | |
| # The current revision count will be used as our build-number | |
| fetch-depth: '0' | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - name: set env variables | |
| run: | | |
| BUILD_VERSION=$(game-app/run/.build/get-build-version) | |
| echo "build_version=$BUILD_VERSION" | tee -a $GITHUB_ENV | |
| echo "release_name=$(date +%Y-%B-%d) - $BUILD_VERSION" | tee -a $GITHUB_ENV | |
| echo "INSTALL4J_LICENSE_KEY=$INSTALL4J_LICENSE_KEY" | tee -a $GITHUB_ENV | |
| env: | |
| INSTALL4J_LICENSE_KEY: ${{ secrets.INSTALL4J_LICENSE_KEY }} | |
| - name: Build Installers | |
| run: ./game-app/run/package | |
| - name: Create Github Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| artifacts: build/artifacts/* | |
| tag: ${{ env.build_version }} | |
| name: ${{ env.release_name }} | |
| prerelease: true | |
| commit: ${{ github.sha }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |