Skip to content

Commit

Permalink
[wip]: test to also push mac zip
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Oct 14, 2024
1 parent 7599d3b commit b6ed394
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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()
Expand Down

0 comments on commit b6ed394

Please sign in to comment.