Skip to content

Commit f32d3e3

Browse files
committed
💚 增加自动发布 CI
1 parent c2fce76 commit f32d3e3

File tree

6 files changed

+53
-43
lines changed

6 files changed

+53
-43
lines changed

.github/workflows/flutter.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ name: Flutter CI
55
on:
66
push:
77
branches:
8-
- develop
98
- master
10-
- release/*
11-
pull_request:
12-
branches:
13-
- develop
149

1510
jobs:
1611
build:

.github/workflows/publish.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/publish_apk.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
name: Publish APK
22

33
on:
4-
# push:
5-
# branches:
6-
# - develop
7-
# - master
8-
# - 2x
94
release:
105
types: [published]
116

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
create_release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Extract version from tag
16+
id: extract_version
17+
run: |
18+
VERSION=${GITHUB_REF#refs/tags/v}
19+
echo "VERSION=$VERSION" >> $GITHUB_ENV
20+
21+
- name: Read release notes
22+
id: release_notes
23+
run: |
24+
VERSION=${{ env.VERSION }}
25+
CHANGELOG=$(sed -n "/## $VERSION/,/^## /p" CHANGELOG.md | sed '$d' | tail -n +2)
26+
if [ -z "$CHANGELOG" ]; then
27+
echo "Release notes not found for version $VERSION"
28+
exit 1
29+
fi
30+
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
31+
echo "$CHANGELOG" >> $GITHUB_ENV
32+
echo "EOF" >> $GITHUB_ENV
33+
34+
- name: Create GitHub release
35+
uses: softprops/action-gh-release@v2
36+
with:
37+
body: ${{ env.RELEASE_NOTES }}
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<h1 align="center">Flutter QQ Ads</h1>
2-
<h3 align="center">【♻️ 持续更新】一款优质的 Flutter (腾讯广告、广点通、优量汇)广告插件</h3>
2+
<h3 align="center">一款优质的优量汇(腾讯广告、广点通)Flutter 广告插件</h3>
3+
<p align="center">♻️ 持续更新 ♻️</p>
34

45
<p align="center">
56
<a href="https://pub.dev/packages/flutter_qq_ads">
@@ -23,12 +24,20 @@
2324
- ✅ 激励视频
2425
- ✅ Banner
2526
- ✅ 信息流
27+
- 🦥 预缓存(预加载,极速展示) [🎁 Pro 版](https://flutterads.top/)
28+
- 🏆 实时价格 eCPM(上报归因,买量更有效)[🎁 Pro 版](https://flutterads.top/)
2629

2730
## 📃 接入文档
2831

2932
- [ 🎯 极速接入、快速体验、持续更新](https://github.com/FlutterAds/flutter_qq_ads/wiki)
3033

31-
- [ 💰 变现方案 = 【GroMore】+【AdSpark】+【AdContent】](https://flutterads.top/)
34+
- [ 💰 变现套件 = 【GroMore】+【AdSpark】+【AdContent】](https://flutterads.top/)
35+
36+
## 📣 推荐使用 GroMore
37+
38+
-[Gromore Pro](https://flutterads.top/)】可进行多家广告瀑布流竞价,让您获得更高的广告收益,发挥最大的用户价值
39+
40+
[![](https://raw.githubusercontent.com/FlutterAds/.github/main/gromore_pro_site.png)](https://flutterads.top/)
3241

3342
## 📌 广告系列插件(FlutterAds)
3443
|插件|描述|
@@ -38,11 +47,4 @@
3847
|[flutter_pangle_ads](https://github.com/FlutterAds/flutter_pangle_ads)|字节跳动、穿山甲 Flutter 广告插件|
3948
|[flutter_qq_ads](https://github.com/FlutterAds/flutter_qq_ads)|腾讯广告、广点通、优量汇 Flutter 广告插件|
4049
|[flutter_adspark](https://github.com/FlutterAds/flutter_adspark)|巨量广告/穿山甲的广告监测、增长分析、归因上报、事件管理 Flutter 版插件|
41-
|[flutter_adcontent](https://github.com/FlutterAds/flutter_adcontent)|穿山甲内容输出 Flutter 版插件,支持短剧和小视频|
42-
43-
44-
## 📣 推荐使用 GroMore
45-
46-
-[Gromore Pro](https://flutterads.top/)】可进行多家广告瀑布流竞价,让您获得更高的广告收益,发挥最大的用户价值
47-
48-
[![](https://raw.githubusercontent.com/FlutterAds/.github/main/gromore_pro_site.png)](https://flutterads.top/)
50+
|[flutter_adcontent](https://github.com/FlutterAds/flutter_adcontent)|穿山甲内容输出 Flutter 版插件,支持短剧和小视频|

lib/flutter_qq_ads.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class FlutterQqAds {
3434
'initAd',
3535
{'appId': appId},
3636
);
37+
print(
38+
"🎉🎉🎉 FlutterAds ==> 初始化完成,推荐使用 GroMore Pro 版本,获得更高的收益:https://flutterads.top/");
3739
return result;
3840
}
3941

0 commit comments

Comments
 (0)