From 2c72a3924d91f45d541dd83f1f83ddc550e4fa09 Mon Sep 17 00:00:00 2001 From: Telan <13066272+TheElan@users.noreply.github.com> Date: Mon, 13 Dec 2021 17:29:40 +0200 Subject: [PATCH] ci: update publishing in release-tags.yml workflow; revert build-and-test.yml --- .github/workflows/build-and-test.yml | 24 +++++++++--------------- .github/workflows/release-tags.yml | 9 +++++---- 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 9e4ee82..10efffe 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -29,23 +29,17 @@ jobs: - name: Setup the workspace run: ./gradlew setupCIWorkspace - + - name: Build the mod run: ./gradlew build - - name: Set repository owner and name + - name: Run server for 1 minute 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: "0.0.1-publish-test" - REPOSITORY_NAME: "${{ env.REPOSITORY_NAME }}" - REPOSITORY_OWNER: "${{ env.REPOSITORY_OWNER }}" - + mkdir run + echo "eula=true" > run/eula.txt + timeout 60 ./gradlew runServer || true + - name: Test no crashes happend + run: | + chmod +x .github/scripts/test-no-crash-reports.sh + .github/scripts/test-no-crash-reports.sh diff --git a/.github/workflows/release-tags.yml b/.github/workflows/release-tags.yml index ea5846a..96d37f7 100644 --- a/.github/workflows/release-tags.yml +++ b/.github/workflows/release-tags.yml @@ -53,8 +53,9 @@ jobs: run: ./gradlew publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPOSITORY_OWNER: "${{ env.REPOSITORY_OWNER }}" - GROUP_ID: com.github.${{ env.REPOSITORY_NAME }} - REPOSITORY_NAME: "${{ env.REPOSITORY_NAME }}" - ARTIFACT_NAME: "${{ env.REPOSITORY_NAME }}" + 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 }}" +