Skip to content

Commit

Permalink
ci: Update release template to use softprops/action-gh-release as act…
Browse files Browse the repository at this point in the history
…ions/create-release is deprecated with release notes generations (#533)

Signed-off-by: peterzhu1992 <[email protected]>
  • Loading branch information
peterzhu1992 authored Jun 20, 2023
1 parent ba2b40c commit a5ae9b9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
env:
PLUGIN_NAME: obsidian-git

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -29,16 +32,13 @@ jobs:
cp main.js manifest.json ${{ env.PLUGIN_NAME }}
zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }}
ls
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ github.ref }}
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
name: ${{ github.ref_name }}
generate_release_notes: true
draft: false
prerelease: false
- name: Upload zip file
Expand All @@ -49,7 +49,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ env.PLUGIN_NAME }}.zip
asset_name: ${{ env.PLUGIN_NAME }}-${{ steps.build.outputs.tag_name }}.zip
asset_name: ${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.zip
asset_content_type: application/zip
- name: Upload main.js
id: upload-main
Expand Down

0 comments on commit a5ae9b9

Please sign in to comment.