From 76407eb7e14916e58802f4bf04f6f3d7720bf80f Mon Sep 17 00:00:00 2001 From: Ryan Bajimaya <89503528+CubedTemp@users.noreply.github.com> Date: Mon, 18 Dec 2023 14:13:40 +1100 Subject: [PATCH] test: build: Undo auto release --- .github/workflows/release.yml | 73 ----------------------------------- 1 file changed, 73 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 8a37816f0..000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,73 +0,0 @@ -# Prepares, builds and publishes new releases - -name: Release - -# On changes to release branches -on: - push: - branches: - - main - - master - workflow_dispatch: - -jobs: - release: - name: Release - - runs-on: ubuntu-latest - - steps: - - name: 🙌 Prepare release - id: release-please - uses: google-github-actions/release-please-action@v4 - with: - config-file: .github/release-please.json - token: ${{ secrets.GITHUB_TOKEN }} - - outputs: - paths_released: ${{ steps.release-please.outputs.paths_released }} - releases: ${{ toJson(steps.release-please.outputs) }} - - publish: - name: Publish - - runs-on: ubuntu-latest - needs: release - if: ${{ needs.release.outputs.paths_released != '[]' }} - - strategy: - fail-fast: false - matrix: - path: ${{ fromJson(needs.release.outputs.paths_released) }} - - steps: - - name: ✨ Checkout repository - uses: actions/checkout@v4 - - - name: ☕ Set up JDK 21 - uses: actions/setup-java@v4 - with: - java-version: '21' - distribution: 'temurin' - cache: 'gradle' - - - name: 🐘 Set up Gradle - uses: gradle/gradle-build-action@v2 - - - name: 📢 Publish new release - uses: gradle/gradle-build-action@v2 - with: - arguments: ${{ matrix.path == '.' && ':publish' || format('{0}:publish', matrix.path) }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} - CURSEFORGE_DEBUG: ${{ secrets.CURSEFORGE_DEBUG }} - MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} - MODRINTH_DEBUG: ${{ secrets.MODRINTH_DEBUG }} - - - name: 📦 Upload artifacts - uses: softprops/action-gh-release@v1 - with: - tag_name: ${{ fromJson(needs.release.outputs.releases)[matrix.path == '.' && 'tag_name' || format('{0}--tag_name', matrix.path)] }} - files: build/libs/* - token: ${{ secrets.GITHUB_TOKEN }}