From 9e1ea3410c4f2cb6cb08b56342db857840dfee40 Mon Sep 17 00:00:00 2001 From: "guorong.zheng" <360996299@qq.com> Date: Tue, 26 Mar 2024 17:49:15 +0800 Subject: [PATCH 1/6] test:release --- .github/workflows/release.yml | 18 +----------------- version.json | 1 - 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e81d9d7d04..9006ff203a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 diff --git a/version.json b/version.json index 698bdf02dd..688e939808 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,3 @@ { - "name": "TV", "version": "1.0.0" } \ No newline at end of file From 621d58b23fc8fd35b8687bd878500102cd24f771 Mon Sep 17 00:00:00 2001 From: "guorong.zheng" <360996299@qq.com> Date: Tue, 26 Mar 2024 17:56:36 +0800 Subject: [PATCH 2/6] test:release --- .github/workflows/release.yml | 2 +- CHANGELOG.md | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9006ff203a..0f73e8cf39 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,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 '/## '${version}',/##/p;//,/##/p' CHANGELOG.md | head -n -1 | tail -n +2)" >> $GITHUB_ENV - name: Create Release id: create_release diff --git a/CHANGELOG.md b/CHANGELOG.md index c5fa767488..765f801b3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -95,3 +95,19 @@ - Removed configuration items: whether to filter invalid interfaces, always perform filtering - Removed sorting by date, using response time and resolution as sorting rules - Updated README: added modification update frequency, file proxy description, update log + +## 1.0.1 + +### 2024/3/27 + +- test + +--- + +-test + +### 2024/3/28 + +## -test + +-test From 7191406013797b628fb0ece812f7a7b3d5cdc27b Mon Sep 17 00:00:00 2001 From: "guorong.zheng" <360996299@qq.com> Date: Wed, 27 Mar 2024 14:12:28 +0800 Subject: [PATCH 3/6] test:version --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f73e8cf39..6f5a3e52ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: - name: Get changelog id: get_changelog run: | - echo "changelog=$(sed -n '/## '${version}',/##/p;//,/##/p' CHANGELOG.md | head -n -1 | tail -n +2)" >> $GITHUB_ENV + echo "changelog=$(sed -n '/## $env.version/,/##/p' CHANGELOG.md | head -n -1 | tail -n +2)" >> $GITHUB_ENV - name: Create Release id: create_release From 62028f7dbd42c2cdab415c1e9baab94de00ff087 Mon Sep 17 00:00:00 2001 From: "guorong.zheng" <360996299@qq.com> Date: Wed, 27 Mar 2024 14:25:29 +0800 Subject: [PATCH 4/6] test:version --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f5a3e52ee..8f69862a73 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: - name: Get changelog id: get_changelog run: | - echo "changelog=$(sed -n '/## $env.version/,/##/p' CHANGELOG.md | head -n -1 | tail -n +2)" >> $GITHUB_ENV + echo "changelog=$(sed -n '/## ${env.version}/,/^##/p' CHANGELOG.md)" >> $GITHUB_ENV - name: Create Release id: create_release From a86f7df21a0abce6ddd521eb90470d4e820a1673 Mon Sep 17 00:00:00 2001 From: "guorong.zheng" <360996299@qq.com> Date: Wed, 27 Mar 2024 14:35:14 +0800 Subject: [PATCH 5/6] test:version changelog --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8f69862a73..2b4ffe9133 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,11 @@ jobs: - name: Get changelog id: get_changelog run: | - echo "changelog=$(sed -n '/## ${env.version}/,/^##/p' CHANGELOG.md)" >> $GITHUB_ENV + echo "changelog=$(sed -n '/## ${{ env.version }}/,/^##/p' CHANGELOG.md)" >> $GITHUB_ENV + + - name: Print Changelog + run: | + echo "Changelog: ${{ env.changelog }}" - name: Create Release id: create_release From f86841c8ffd991310afe4a7b651dff5b99cbecae Mon Sep 17 00:00:00 2001 From: "guorong.zheng" <360996299@qq.com> Date: Wed, 27 Mar 2024 14:38:35 +0800 Subject: [PATCH 6/6] chore:workflow_dispatch --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2b4ffe9133..8fe5543e0e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,8 @@ on: paths: - './version.json' workflow_dispatch: + branches: + - master jobs: build: