Skip to content

Commit ed9affd

Browse files
committed
fix: CD workflow for Releases
1 parent 8ee8547 commit ed9affd

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.github/workflows/cd.yaml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -89,30 +89,20 @@ jobs:
8989
permissions: write-all
9090
name: Release
9191
runs-on: ubuntu-latest
92-
if: 'startsWith(github.ref, ''refs/tags/'')'
92+
if: startsWith(github.ref, 'refs/tags/')
9393
needs: [linux, windows, macos]
9494
steps:
9595
- uses: actions/download-artifact@v4
9696
with:
9797
merge-multiple: true
98-
- name: Create Release
99-
id: create_release
100-
uses: actions/create-release@v1
101-
env:
102-
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
103-
with:
104-
tag_name: '${{ github.ref }}'
105-
release_name: 'Release ${{ github.ref }}'
106-
draft: false
107-
prerelease: false
98+
10899
- name: Upload Release Asset
109-
id: upload-release-asset
110100
uses: softprops/action-gh-release@v2
111-
env:
112-
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
113-
if: startsWith(github.ref, 'refs/tags/')
114101
with:
102+
tag_name: ${{ github.ref_name }}
115103
files: '*.whl'
104+
env:
105+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116106
publish:
117107
name: Publish
118108
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)