Skip to content

Commit 33f2438

Browse files
committed
fix gh actions trigger logic for publish
1 parent 138d142 commit 33f2438

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/publish.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Publish Release
22

33
on:
44
push:
5-
branches: [ "main" ]
65
tags:
76
- release/*
87

@@ -220,4 +219,18 @@ jobs:
220219
uses: actions/upload-artifact@v4
221220
with:
222221
name: pypccl-${{ runner.os }}-${{ matrix.build_type }}-${{ matrix.pccl_build_cuda_support == 'ON' && 'cuda' || 'nocuda' }}-${{ github.run_id }}
223-
path: ./python/framework/dist/pypccl-*.whl
222+
path: ./python/framework/dist/pypccl-*.whl
223+
224+
- name: Publish GitHub Release
225+
uses: actions/create-release@v1
226+
with:
227+
tag_name: ${{ github.ref }}
228+
release_name: Release ${{ github.ref }}
229+
230+
- name: Upload Release Assets
231+
uses: actions/upload-release-asset@v1
232+
with:
233+
upload_url: ${{ steps.create_release.outputs.upload_url }}
234+
asset_path: ${{ github.workspace }}/python/framework/dist/pypccl-*.whl
235+
asset_name: pypccl-${{ runner.os }}-${{ matrix.build_type }}-${{ matrix.pccl_build_cuda_support == 'ON' && 'cuda' || 'nocuda' }}-${{ github.run_id }}.whl
236+
asset_content_type: application/zip

0 commit comments

Comments
 (0)