Skip to content

Commit

Permalink
chore:changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Guovin committed Mar 26, 2024
1 parent 6546b6d commit 5d5940e
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Zip TV directory
id: zip_tv
run: |
zip -r tv.zip .
- name: Get version and name from version.json
id: get_info
run: |
Expand All @@ -28,7 +23,7 @@ jobs:
- name: Get changelog
id: get_changelog
run: |
echo "changelog=$(sed -n '/## '${version}'/,/##/p' CHANGELOG.md | head -n -1 | tail -n +2)" >> $GITHUB_ENV
echo "changelog=$(sed -n -e '/## '${version} -e '/##/p' CHANGELOG.md | sed '1d;$d')" >> $GITHUB_ENV
- name: Create Release
id: create_release
Expand All @@ -41,13 +36,3 @@ jobs:
body: ${{ env.changelog }}
draft: false
prerelease: false

- name: Upload ZIP Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./tv.zip
asset_name: ${{ env.name }}.zip
asset_content_type: application/zip

0 comments on commit 5d5940e

Please sign in to comment.