-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action to publish TripleA client Jar file (#12618)
The jar file will in turn be used as a dependency for other repositories, specifically things like the lobby.
- Loading branch information
1 parent
cf85296
commit 0154021
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Jar file is useful for server code, so that the server code can depend on | ||
# the TripleA client code (jar file). The TripleA client should include | ||
# the 'http client' (AKA REST API) code for communicating with server | ||
name: Publish Jar File | ||
on: | ||
push: | ||
branches: | ||
- master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
jobs: | ||
build: | ||
runs-on: Ubuntu-20.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
# 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 11 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
- name: set build version variables | ||
run: | | ||
BUILD_VERSION=$(game-app/run/.build/get-build-version) | ||
echo "JAR_VERSION=$BUILD_VERSION" | tee -a $GITHUB_ENV | ||
- name: Publish package | ||
run: ./gradlew :game-app:game-headed:publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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