From 2767ef4927a1736087488d2e1c49d7316959f0b9 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sat, 4 May 2024 16:05:22 +0200 Subject: Try to fix the repo inclusion --- .github/workflows/prepare-release.yml | 38 +++++++++++++++++++++++++++++++++++ .github/workflows/publish.yml | 37 ---------------------------------- 2 files changed, 38 insertions(+), 37 deletions(-) create mode 100644 .github/workflows/prepare-release.yml delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml new file mode 100644 index 00000000..fd60be0b --- /dev/null +++ b/.github/workflows/prepare-release.yml @@ -0,0 +1,38 @@ +name: Pre-Publish + +on: + push: + tags: + - "*" + +jobs: + build: + env: + GIT_URL: ${{ github.server_url }}/${{ github.repository }}/tree/${{ github.sha }} + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: temurin + - name: Set up gradle cache + uses: gradle/gradle-build-action@v2 + - name: Build with Gradle + run: | + ./gradlew test + ./gradlew clean + ./gradlew includeBackupRepo + ./gradlew remapJar + env: + NEU_RELEASE: true + - uses: actions/upload-artifact@v3 + with: + path: build/libs/*.jar + - run: ./.github/workflows/upload-release.sh + env: + GH_TOKEN: ${{ github.token }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 621072f9..00000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Pre-Publish - -on: - push: - tags: - - "*" - -jobs: - build: - env: - GIT_URL: ${{ github.server_url }}/${{ github.repository }}/tree/${{ github.sha }} - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: temurin - - name: Set up gradle cache - uses: gradle/gradle-build-action@v2 - - name: Build with Gradle - run: | - ./gradlew clean - ./gradlew includeBackupRepo - ./gradlew test remapJar - env: - NEU_RELEASE: true - - uses: actions/upload-artifact@v3 - with: - path: build/libs/*.jar - - run: ./.github/workflows/upload-release.sh - env: - GH_TOKEN: ${{ github.token }} -- cgit