Skip to content

Commit

Permalink
test:release
Browse files Browse the repository at this point in the history
  • Loading branch information
Guovin committed Mar 26, 2024
1 parent 6a43393 commit 9e1ea34
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,10 @@ 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
- name: Get version from version.json
id: get_info
run: |
echo "version=$(node -p "require('./version.json').version")" >> $GITHUB_ENV
echo "name=$(node -p "require('./version.json').name")" >> $GITHUB_ENV
- name: Get changelog
id: get_changelog
Expand All @@ -41,13 +35,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
1 change: 0 additions & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"name": "TV",
"version": "1.0.0"
}

0 comments on commit 9e1ea34

Please sign in to comment.