Skip to content

Commit

Permalink
Replace an unmaintained action (#781)
Browse files Browse the repository at this point in the history
* Replace an unmaintained action

* Include release notes in release body

* Set `fail_on_unmatched_files: true`
  • Loading branch information
JohnTitor committed Jun 8, 2022
1 parent beb4c91 commit ce5fa5c
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<<EOF' >> $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

0 comments on commit ce5fa5c

Please sign in to comment.