From b6ed3949446768f3d7d365ea0ea3455d40886dbd Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Mon, 14 Oct 2024 10:15:06 -0300 Subject: [PATCH] [wip]: test to also push mac zip --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05f5551d3..03628d7f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -137,6 +137,14 @@ jobs: path: dist/Cockpit*.${{ matrix.extension }} if-no-files-found: error + - name: Upload diff artifact (mac-only) + if: matrix.os == 'macos-13' + uses: actions/upload-artifact@v3 + with: + name: Cockpit-${{ matrix.suffix }}-${{ matrix.arch }}-${{ env.VERSION }}.zip + path: dist/Cockpit*.zip + if-no-files-found: error + - name: Upload latest metadata artifact uses: actions/upload-artifact@v3 with: @@ -155,6 +163,17 @@ jobs: prerelease: true file_glob: true + - name: Upload diff release (mac-only) + uses: svenstaro/upload-release-action@v2 + if: startsWith(github.ref, 'refs/tags/') && success() && matrix.os == 'macos-13' + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: dist/Cockpit-${{ matrix.suffix }}-${{ matrix.arch }}-${{ env.VERSION }}.zip + tag: ${{ github.ref }} + overwrite: true + prerelease: true + file_glob: true + - name: Upload latest metadata release uses: svenstaro/upload-release-action@v2 if: startsWith(github.ref, 'refs/tags/') && success()