Skip to content

Commit 0e00540

Browse files
abutbulCopilot
andauthored
Update release.yml (#12)
* Update release.yml * Update .github/workflows/release.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 9bac01a commit 0e00540

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,27 @@ jobs:
4444
with:
4545
name: python-package-distributions
4646
path: dist/
47+
48+
- name: Create GitHub Release
49+
id: create_release
50+
uses: actions/create-release@v1
51+
with:
52+
tag_name: ${{ github.ref_name }}
53+
release_name: Release ${{ github.ref_name }}
54+
draft: false
55+
prerelease: false
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
59+
- name: Compress dist directory
60+
run: zip -r dist.zip dist
61+
62+
- name: Upload Release Assets
63+
uses: actions/upload-release-asset@v1
64+
with:
65+
upload_url: ${{ steps.create_release.outputs.upload_url }}
66+
asset_path: dist.zip
67+
asset_name: dist.zip
68+
asset_content_type: application/zip
69+
env:
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)