diff --git a/.github/workflows/main-release.yml b/.github/workflows/main-release.yml index 514e1876..4467a0f5 100644 --- a/.github/workflows/main-release.yml +++ b/.github/workflows/main-release.yml @@ -4,12 +4,12 @@ on: push: tags: - "v*.*.*" - branches: - - main jobs: release: runs-on: ubuntu-latest + permissions: + contents: write steps: # environment - name: checkout code @@ -41,11 +41,13 @@ jobs: run: ls -lah build-release/ # release - - name: Get version num + - name: get version num + id: get_vernum run: | version=${{ github.ref_name }} - version_num=${version/v|./} - echo "version_num: $version_num" + vernum=$( echo $version | sed 's/[^0-9]//g') + echo "New version: $vernum" + echo "VERSION_NUM=$vernum" >> "$GITHUB_OUTPUT" - name: release action uses: ncipollo/release-action@v1 @@ -54,4 +56,5 @@ jobs: allowUpdates: true replacesArtifacts: true generateReleaseNotes: true - body: "[CHANGELOG.md](https://github.com/festoney8/bilibili-cleaner/blob/main/CHANGELOG.md#${version_num})" + body: '## [更新日志](https://github.com/festoney8/bilibili-cleaner/blob/main/CHANGELOG.md#${{ steps.get_vernum.outputs.VERSION_NUM }})' + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 556b376f..d51533fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ - 优化:与 Evolved 黑暗模式的适配 - 优化:CSS注入 - 修复:一些bug +- 文档:完善 README 和 CHANGELOG +- 构建:添加 CI ## 1.1.7 diff --git a/README.md b/README.md index e40af341..bebe0216 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@
- +

bilibili 页面净化大师

高度定制化的 bilibili 网页净化插件,提供 300+ 个功能开关,深度净化页面元素

@@ -19,8 +19,9 @@ ## 安装 -### **稳定版:请查看 [浏览器适配](#%E6%B5%8F%E8%A7%88%E5%99%A8%E9%80%82%E9%85%8D),并 [点此安装](https://greasyfork.org/zh-CN/scripts/479861)** +### **稳定版:[点此安装](https://greasyfork.org/zh-CN/scripts/479861)** +- 请查看 [浏览器适配](#%E6%B5%8F%E8%A7%88%E5%99%A8%E9%80%82%E9%85%8D) - 稳定版持续在 Greasyfork 发布,油猴插件会定期检查,自动更新 ### 开发测试版:[点此安装dev版](https://github.com/festoney8/bilibili-cleaner/raw/dev/dist/bilibili-cleaner.user.js)