Skip to content

fixed this test file for some reason when there's an outstanding pr #91

fixed this test file for some reason when there's an outstanding pr

fixed this test file for some reason when there's an outstanding pr #91

name: Deploy
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-jar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- name: Setup Gradle
uses: gradle/[email protected]
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Compile and build classes
run: ./gradlew classes
- name: Run code checks
run: ./gradlew check
- name: Run unit tests
run: ./gradlew --no-build-cache cleanTest test
- name: build jar
continue-on-error: true
run: ./gradlew dist
- name: Upload JAR
continue-on-error: true
uses: actions/upload-artifact@v3
with:
name: release
path: |
game/desktop/build/libs/desktop-1.0.jar
- name: Upload binaries to GitHub Release
continue-on-error: true
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: game/desktop/build/libs/*.jar
tag: pre-release
prerelease: true
overwrite: true
file_glob: true
body: |
## ${{ github.ref_name }} (${{ github.sha }})
${{ github.event.head_commit.message }}