From ad8bf00fe4b1c2d8417fa51de5f69cb3227dda2c Mon Sep 17 00:00:00 2001 From: Matthew Maxwell Date: Thu, 14 Nov 2024 15:33:50 -0600 Subject: [PATCH] Remove artifact unzipping --- .github/workflows/release.yml | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c784a4..94a0ffe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,9 +2,14 @@ name: Release on: workflow_dispatch +env: + BUILD_TYPE: Release + PLUGIN_NAME: Rotor + BUNDLE_ID: com.bbx-audio.rotor + VERSION: 1.0.0 + jobs: Build: - name: Build Release (${{ matrix.name }}) uses: ./.github/workflows/build.reusable.yml strategy: fail-fast: false @@ -20,7 +25,6 @@ jobs: upload_artifacts: ${{ true }} Package: - name: Package (${{ matrix.name }}) runs-on: ${{ matrix.os }} needs: [Build] strategy: @@ -33,21 +37,12 @@ jobs: # - name: Windows # os: windows-2022 # pluginval-bin: ./pluginval.exe - env: - BUILD_TYPE: Release - PLUGIN_NAME: Rotor - BUNDLE_ID: com.bbx-audio.rotor - VERSION: 1.0.0 steps: - name: Download Artifacts uses: actions/download-artifact@v4 with: name: ${{ env.PLUGIN_NAME }}-${{ matrix.name }} - - name: Unzip Artifacts - run: | - 7z x ${{ env.PLUGIN_NAME }}-${{ matrix.name }}.zip - - name: Set Environment Variables run: | ARTIFACTS_PATH=${{ env.PLUGIN_NAME }}-${{ matrix.name }} @@ -120,3 +115,18 @@ jobs: with: name: ${{ env.ARTIFACT_NAME }} path: packaging/${{ env.ARTIFACT_NAME }}.dmg + + Release: + if: startsWith(github.event.ref, 'refs/tags/v') + runs-on: ubuntu-latest + needs: [Package] + steps: + - name: Download Artifacts + uses: actions/download-artifact@v4 + + - name: Draft Release + uses: softprops/actions-gh-release@v2 + with: + prerelease: true + files: | + */*.dmg