Skip to content

Commit

Permalink
chore: update release workflow, readme, changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Dec 28, 2023
1 parent 72cecb1 commit bf114cc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/main-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:
push:
tags:
- "v*.*.*"
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# environment
- name: checkout code
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
- 优化:与 Evolved 黑暗模式的适配
- 优化:CSS注入
- 修复:一些bug
- 文档:完善 README 和 CHANGELOG
- 构建:添加 CI

## 1.1.7

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<image src="./images/logo.png" height="160"></image>
<image src="./images/logo.png" height="150"></image>
<h1>bilibili 页面净化大师</h1>
<div><b>高度定制化的 bilibili 网页净化插件,提供 300+ 个功能开关,深度净化页面元素</b></div>
<br>
Expand All @@ -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)
Expand Down

0 comments on commit bf114cc

Please sign in to comment.