Skip to content

Commit

Permalink
Merge pull request #477 from michaelonken/separate_build_and_publish_…
Browse files Browse the repository at this point in the history
…steps

Separate build and publish phase in CI.
  • Loading branch information
fedorov authored Oct 18, 2023
2 parents b205637 + 974a512 commit e1f27b2
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/cmake-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,29 @@ jobs:
cd ${{ github.workspace }}\dcmqi-build\dcmqi-build
cmake --build . --config Release --target PACKAGE -- /m
- uses: actions/upload-artifact@v3
with:
name: dcmqi-build
path: ${{ github.workspace }}\dcmqi-build\dcmqi-build\dcmqi-*-win64*.zip

publish-windows:

runs-on: windows-latest
timeout-minutes: 5
# Only run if the event is not a pull request and the repository owner is QIICR.
# The latter is to prevent forks from publishing packages even if the owner's token
# would have sufficient privileges.
if: ${{ (github.event_name != 'pull_request') && (github.repository_owner == 'QIICR')}}

needs: build-windows

steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: dcmqi-build
path: ${{ github.workspace }}\dcmqi-build\dcmqi-build

- name: Publish package
run: |
pip install -U "scikit-ci-addons>=0.22.0"
Expand Down

0 comments on commit e1f27b2

Please sign in to comment.