Skip to content

Commit 0922763

Browse files
committed
Fix: Replace deprecated actions/create-release with gh CLI
1 parent bb42f28 commit 0922763

1 file changed

Lines changed: 11 additions & 15 deletions

File tree

.github/workflows/sync-and-publish.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -318,23 +318,19 @@ jobs:
318318
319319
- name: Create GitHub Release
320320
if: steps.check-pypi.outputs.exists != 'true'
321-
uses: actions/create-release@v1
322321
env:
323322
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
324-
with:
325-
tag_name: v${{ steps.get-version.outputs.version }}
326-
release_name: Release v${{ steps.get-version.outputs.version }}
327-
body: |
328-
🎉 Auto-generated SDK from OpenAPI specification
329-
330-
Version: ${{ steps.get-version.outputs.version }}
331-
332-
Install via pip:
333-
```bash
334-
pip install mixpeek==${{ steps.get-version.outputs.version }}
335-
```
336-
draft: false
337-
prerelease: false
323+
run: |
324+
gh release create "v${{ steps.get-version.outputs.version }}" \
325+
--title "Release v${{ steps.get-version.outputs.version }}" \
326+
--notes "🎉 Auto-generated SDK from OpenAPI specification
327+
328+
Version: ${{ steps.get-version.outputs.version }}
329+
330+
Install via pip:
331+
\`\`\`bash
332+
pip install mixpeek==${{ steps.get-version.outputs.version }}
333+
\`\`\`"
338334
339335
- name: Skip - Version already published
340336
if: steps.check-pypi.outputs.exists == 'true'

0 commit comments

Comments
 (0)