Skip to content

Commit 1fb30ca

Browse files
authored
Add GitHub action for opensearch-py-ml release (#346)
Signed-off-by: Zelin Hao <[email protected]>
1 parent c977981 commit 1fb30ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release-drafter.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
draft-a-release:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
14+
contents: write
1215
steps:
1316
- name: Checkout Repository
1417
uses: actions/checkout@v3
@@ -34,10 +37,11 @@ jobs:
3437
run: |
3538
python -m build
3639
tar -zvcf artifacts.tar.gz dist
40+
- name: Publish package distributions to PyPI
41+
uses: pypa/gh-action-pypi-publish@release/v1
3742
- name: Draft a release
3843
uses: softprops/action-gh-release@v1
3944
with:
40-
draft: true
4145
generate_release_notes: true
4246
files: |
4347
artifacts.tar.gz

0 commit comments

Comments
 (0)