diff options
| author | Johann Bernhardt <johann.bernhardt@tum.de> | 2021-12-17 18:11:17 +0100 |
|---|---|---|
| committer | Johann Bernhardt <johann.bernhardt@tum.de> | 2021-12-17 18:11:17 +0100 |
| commit | 8d5b072e989cda9b38d6f56b843f76ac7a37b986 (patch) | |
| tree | ec91a83d5a690f3cd0bef6344497299eb5efe261 /.github/workflows | |
| parent | edec7d539ffe2431917b3469f5dee8d03f90c6f2 (diff) | |
| download | GT5-Unofficial-8d5b072e989cda9b38d6f56b843f76ac7a37b986.tar.gz GT5-Unofficial-8d5b072e989cda9b38d6f56b843f76ac7a37b986.tar.bz2 GT5-Unofficial-8d5b072e989cda9b38d6f56b843f76ac7a37b986.zip | |
Update build script and CI
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build-and-test.yml | 12 | ||||
| -rw-r--r-- | .github/workflows/release-tags.yml | 16 |
2 files changed, 22 insertions, 6 deletions
diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index a60a2b6468..08df9fe89f 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -29,17 +29,17 @@ jobs: - name: Setup the workspace run: ./gradlew setupCIWorkspace - + - name: Build the mod run: ./gradlew build - - name: Run server for 1 minute + - name: Run server for 1.5 minutes run: | mkdir run echo "eula=true" > run/eula.txt - timeout 60 ./gradlew runServer || true + timeout 90 ./gradlew runServer | tee --append server.log || true - - name: Test no crashes happend + - name: Test no errors reported during server run run: | - chmod +x .github/scripts/test-no-crash-reports.sh - .github/scripts/test-no-crash-reports.sh + chmod +x .github/scripts/test-no-error-reports.sh + .github/scripts/test-no-error-reports.sh diff --git a/.github/workflows/release-tags.yml b/.github/workflows/release-tags.yml index 25c354b227..96d37f7d9a 100644 --- a/.github/workflows/release-tags.yml +++ b/.github/workflows/release-tags.yml @@ -43,3 +43,19 @@ jobs: prerelease: false title: "${{ env.RELEASE_VERSION }}" files: build/libs/*.jar + + - name: Set repository owner and name + run: | + echo "REPOSITORY_OWNER=${GITHUB_REPOSITORY%/*}" >> $GITHUB_ENV + echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV + + - name: Publish package + run: ./gradlew publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ARTIFACT_GROUP_ID: com.github.${{ env.REPOSITORY_OWNER }} + ARTIFACT_ID: "${{ env.REPOSITORY_NAME }}" + ARTIFACT_VERSION: "${{ env.RELEASE_VERSION }}" + REPOSITORY_NAME: "${{ env.REPOSITORY_NAME }}" + REPOSITORY_OWNER: "${{ env.REPOSITORY_OWNER }}" + |
