diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml index 420ca75..21f6b2d 100644 --- a/.github/workflows/flutter.yml +++ b/.github/workflows/flutter.yml @@ -5,12 +5,7 @@ name: Flutter CI on: push: branches: - - develop - master - - release/* - pull_request: - branches: - - develop jobs: build: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 99f271f..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Publish - -on: -# push: -# branches: -# - develop -# - master - release: - types: [published] - -jobs: - publish: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Publish - uses: sakebook/actions-flutter-pub-publisher@v1.4.1 - with: - credential: ${{ secrets.PUB_OAUTH_ACCESS_TOKEN }} - flutter_package: true - skip_test: true - dry_run: false diff --git a/.github/workflows/publish_apk.yml b/.github/workflows/publish_apk.yml index 117d9db..c3de885 100644 --- a/.github/workflows/publish_apk.yml +++ b/.github/workflows/publish_apk.yml @@ -1,11 +1,6 @@ name: Publish APK on: -# push: -# branches: -# - develop -# - master -# - 2x release: types: [published] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..81c7a37 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +name: Release + +on: + push: + tags: + - 'v*.*.*' + +jobs: + create_release: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Extract version from tag + id: extract_version + run: | + VERSION=${GITHUB_REF#refs/tags/v} + echo "VERSION=$VERSION" >> $GITHUB_ENV + + - name: Read release notes + id: release_notes + run: | + VERSION=${{ env.VERSION }} + CHANGELOG=$(sed -n "/## $VERSION/,/^## /p" CHANGELOG.md | sed '$d' | tail -n +2) + if [ -z "$CHANGELOG" ]; then + echo "Release notes not found for version $VERSION" + exit 1 + fi + echo "RELEASE_NOTES<> $GITHUB_ENV + echo "$CHANGELOG" >> $GITHUB_ENV + echo "EOF" >> $GITHUB_ENV + + - name: Create GitHub release + uses: softprops/action-gh-release@v2 + with: + body: ${{ env.RELEASE_NOTES }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 4b8cdbc..d866322 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@

Flutter QQ Ads

-

【♻️ 持续更新】一款优质的 Flutter (腾讯广告、广点通、优量汇)广告插件

+

一款优质的优量汇(腾讯广告、广点通)Flutter 广告插件

+

♻️ 持续更新 ♻️

@@ -23,12 +24,20 @@ - ✅ 激励视频 - ✅ Banner - ✅ 信息流 +- 🦥 预缓存(预加载,极速展示) [🎁 Pro 版](https://flutterads.top/) +- 🏆 实时价格 eCPM(上报归因,买量更有效)[🎁 Pro 版](https://flutterads.top/) ## 📃 接入文档 - [ 🎯 极速接入、快速体验、持续更新](https://github.com/FlutterAds/flutter_qq_ads/wiki) -- [ 💰 变现方案 = 【GroMore】+【AdSpark】+【AdContent】](https://flutterads.top/) +- [ 💰 变现套件 = 【GroMore】+【AdSpark】+【AdContent】](https://flutterads.top/) + +## 📣 推荐使用 GroMore + +- 【[Gromore Pro](https://flutterads.top/)】可进行多家广告瀑布流竞价,让您获得更高的广告收益,发挥最大的用户价值 + +[![](https://raw.githubusercontent.com/FlutterAds/.github/main/gromore_pro_site.png)](https://flutterads.top/) ## 📌 广告系列插件(FlutterAds) |插件|描述| @@ -38,11 +47,4 @@ |[flutter_pangle_ads](https://github.com/FlutterAds/flutter_pangle_ads)|字节跳动、穿山甲 Flutter 广告插件| |[flutter_qq_ads](https://github.com/FlutterAds/flutter_qq_ads)|腾讯广告、广点通、优量汇 Flutter 广告插件| |[flutter_adspark](https://github.com/FlutterAds/flutter_adspark)|巨量广告/穿山甲的广告监测、增长分析、归因上报、事件管理 Flutter 版插件| -|[flutter_adcontent](https://github.com/FlutterAds/flutter_adcontent)|穿山甲内容输出 Flutter 版插件,支持短剧和小视频| - - -## 📣 推荐使用 GroMore - -- 【[Gromore Pro](https://flutterads.top/)】可进行多家广告瀑布流竞价,让您获得更高的广告收益,发挥最大的用户价值 - -[![](https://raw.githubusercontent.com/FlutterAds/.github/main/gromore_pro_site.png)](https://flutterads.top/) \ No newline at end of file +|[flutter_adcontent](https://github.com/FlutterAds/flutter_adcontent)|穿山甲内容输出 Flutter 版插件,支持短剧和小视频| \ No newline at end of file diff --git a/lib/flutter_qq_ads.dart b/lib/flutter_qq_ads.dart index 7bcdf7e..7cf5d48 100644 --- a/lib/flutter_qq_ads.dart +++ b/lib/flutter_qq_ads.dart @@ -34,6 +34,8 @@ class FlutterQqAds { 'initAd', {'appId': appId}, ); + print( + "🎉🎉🎉 FlutterAds ==> 初始化完成,推荐使用 GroMore Pro 版本,获得更高的收益:https://flutterads.top/"); return result; }