Skip to content

Commit

Permalink
💚 增加自动发布 CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BytesZero committed Aug 4, 2024
1 parent c2fce76 commit f32d3e3
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 43 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ name: Flutter CI
on:
push:
branches:
- develop
- master
- release/*
pull_request:
branches:
- develop

jobs:
build:
Expand Down
23 changes: 0 additions & 23 deletions .github/workflows/publish.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .github/workflows/publish_apk.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Publish APK

on:
# push:
# branches:
# - develop
# - master
# - 2x
release:
types: [published]

Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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<<EOF" >> $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 }}
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<h1 align="center">Flutter QQ Ads</h1>
<h3 align="center">【♻️ 持续更新】一款优质的 Flutter (腾讯广告、广点通、优量汇)广告插件</h3>
<h3 align="center">一款优质的优量汇(腾讯广告、广点通)Flutter 广告插件</h3>
<p align="center">♻️ 持续更新 ♻️</p>

<p align="center">
<a href="https://pub.dev/packages/flutter_qq_ads">
Expand All @@ -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)
|插件|描述|
Expand All @@ -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/)
|[flutter_adcontent](https://github.com/FlutterAds/flutter_adcontent)|穿山甲内容输出 Flutter 版插件,支持短剧和小视频|
2 changes: 2 additions & 0 deletions lib/flutter_qq_ads.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class FlutterQqAds {
'initAd',
{'appId': appId},
);
print(
"🎉🎉🎉 FlutterAds ==> 初始化完成,推荐使用 GroMore Pro 版本,获得更高的收益:https://flutterads.top/");
return result;
}

Expand Down

0 comments on commit f32d3e3

Please sign in to comment.