From 5e3c1a7d844c3a465c37e65499c231226b7da0fc Mon Sep 17 00:00:00 2001 From: Andrey Fedorov Date: Mon, 11 Sep 2023 21:42:05 -0400 Subject: [PATCH] CI: add package publish for win and mac --- .github/workflows/cmake-macos.yml | 10 ++++++++++ .github/workflows/cmake-win.yml | 12 ++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake-macos.yml b/.github/workflows/cmake-macos.yml index ff54e219..d8489eaa 100644 --- a/.github/workflows/cmake-macos.yml +++ b/.github/workflows/cmake-macos.yml @@ -94,3 +94,13 @@ jobs: - name: "Package dcmqi" run: | cd ${{ github.workspace }}/dcmqi-build/dcmqi-build && ninja package + + + - name: Publish package + run: | + ci_addons publish_github_release qiicr/dcmqi + --exit-success-if-missing-token + --prerelease-packages "${{ github.workspace }}/dcmqi-build/dcmqi-build/dcmqi-*-mac-*.tar.gz" + --prerelease-packages-clear-pattern "dcmqi-*-mac-*" --prerelease-packages-keep-pattern "*-*" + --token ${{ secrets.GA_TOKEN }} + \ No newline at end of file diff --git a/.github/workflows/cmake-win.yml b/.github/workflows/cmake-win.yml index 6fce1d46..cc060e04 100644 --- a/.github/workflows/cmake-win.yml +++ b/.github/workflows/cmake-win.yml @@ -64,5 +64,13 @@ jobs: cd ${{ github.workspace }}\dcmqi-build\dcmqi-build cmake --build . --config Release --target PACKAGE -- /m - - + - name: Publish package + run: | + ci_addons publish_github_release qiicr/dcmqi + --exit-success-if-missing-token + --release-packages "${{ github.workspace }}\dcmqi-build\dcmqi-build\dcmqi-*-win64.zip" + --prerelease-packages "${{ github.workspace }}\dcmqi-build\dcmqi-build\dcmqi-*-win64-*.zip" + --prerelease-packages-clear-pattern "dcmqi-*-win64-*" + --prerelease-packages-keep-pattern "*-*" + --token ${{ secrets.GA_TOKEN }} + \ No newline at end of file