Skip to content

Commit 866a456

Browse files
committed
replace create-release deprecated action with the same one used in the cli
1 parent cdc7cfe commit 866a456

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

.github/workflows/release.yml

+6-15
Original file line numberDiff line numberDiff line change
@@ -596,25 +596,16 @@ jobs:
596596
echo "</details>" >> $GITHUB_OUTPUT
597597
echo "EOF" >> $GITHUB_OUTPUT
598598
599-
- name: Create Github Release
600-
uses: actions/create-release@v1
601-
env:
602-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
599+
- name: Create Github Release and upload artifacts
600+
uses: ncipollo/release-action@v1
603601
with:
604-
tag_name: ${{ github.ref }}
605-
release_name: ${{ github.ref }}
602+
token: ${{ secrets.GITHUB_TOKEN }}
606603
body: ${{ steps.release_body.outputs.RBODY}}
607604
draft: false
608605
prerelease: ${{ needs.build.outputs.prerelease }}
609-
610-
- name: Upload release files on Github
611-
uses: svenstaro/upload-release-action@v2
612-
with:
613-
repo_token: ${{ secrets.GITHUB_TOKEN }}
614-
tag: ${{ github.ref }}
615-
file_glob: true # If set to true, the file argument can be a glob pattern
616-
file: release/*
617-
606+
# NOTE: "Artifact is a directory" warnings are expected and don't indicate a problem
607+
# (all the files we need are in the DIST_DIR root)
608+
artifacts: release/*
618609

619610
- name: configure aws credentials
620611
uses: aws-actions/configure-aws-credentials@v4

0 commit comments

Comments
 (0)