From ce5fa5c3dd37d627d0577d3398ebb27c884e5318 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Wed, 8 Jun 2022 10:57:49 +0900 Subject: [PATCH] Replace an unmaintained action (#781) * Replace an unmaintained action * Include release notes in release body * Set `fail_on_unmatched_files: true` --- .github/workflows/ci.yml | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08b2310b..e7f1c056 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,24 +63,19 @@ jobs: - name: Verify index migration from 0.3.x to 0.4.x run: hack/verify-index-migration.sh - - name: Create a new release + - name: Make release notes if: contains(github.ref, 'tags') - id: create_release - uses: actions/create-release@v1.0.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false + run: | + echo 'RELEASE_NOTES<> $GITHUB_ENV + TAG=$GITHUB_REF_NAME hack/make-release-notes.sh >> $GITHUB_ENV + echo 'EOF' >> $GITHUB_ENV - - name: Upload binaries to the new release + - name: Create a new release if: contains(github.ref, 'tags') - uses: svenstaro/upload-release-action@v2 + id: create_release + uses: softprops/action-gh-release@v1 with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: out/krew* - tag: ${{ github.ref }} - overwrite: true - file_glob: true + name: Release ${{ github.ref_name }} + files: out/krew* + body: ${{ env.RELEASE_NOTES }} + fail_on_unmatched_files: true