From 302f61bf62c1b5aac09679006643e620931899c4 Mon Sep 17 00:00:00 2001 From: iotserv <newfarry@126.com> Date: Mon, 4 Nov 2024 20:32:00 +0800 Subject: [PATCH] git tag v0.0.5+1 --- .github/workflows/publish.yml | 51 ++++++++++++++++++++++++----------- .idea/misc.xml | 5 +++- CHANGELOG.md | 4 +++ android/build.gradle | 1 + pubspec.yaml | 2 +- 5 files changed, 45 insertions(+), 18 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index adde709..d92a747 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,23 +1,42 @@ -name: Publish to Pub.dev +# .github/workflows/publish.yml +name: Publish to pub.dev -on: [push, pull_request] +on: + push: + tags: + # must align with the tag-pattern configured on pub.dev, often just replace + # with [0-9]+.[0-9]+.[0-9]+* + - 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v' + # If you prefer tags like '1.2.3', without the 'v' prefix, then use: + # - '[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: '' + # If your repository contains multiple packages consider a pattern like: + # - 'my_package_name-v[0-9]+.[0-9]+.[0-9]+*' jobs: - publishing: + publish: + name: Publish on pub.dev runs-on: ubuntu-latest + + permissions: + id-token: write + contents: write + steps: - # 拉取仓库代码 - - name: "Checkout" - uses: actions/checkout@v2 - - uses: subosito/flutter-action@v1 + - name: Clone repository + uses: actions/checkout@v4 + + # This step adds the auth token for pub.dev + - name: Set up Dart + uses: dart-lang/setup-dart@v1 with: - channel: 'stable' - - run: flutter pub get - # 发布插件 - - name: Publish - uses: sakebook/actions-flutter-pub-publisher@v1.3.1 + sdk: stable + + - name: Set up Flutter + uses: subosito/flutter-action@v2 with: - credential: ${{ secrets.CREDENTIAL_JSON }} - flutter_package: true - skip_test: true - dry_run: false \ No newline at end of file + channel: stable + cache: true + + - name: Publish to pub.dev + id: pub_release + uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1 \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 4a0a449..5e302d9 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,8 @@ <component name="FrameworkDetectionExcludesConfiguration"> <type id="android" /> </component> - <component name="ProjectRootManager" version="2" project-jdk-name="Android API 27 Platform" project-jdk-type="Android SDK" /> + <component name="ProjectRootManager" version="2" project-jdk-name="Android API 28 Platform" project-jdk-type="Android SDK" /> + <component name="ProjectType"> + <option name="id" value="io.flutter" /> + </component> </project> \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e60d070..9137cde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.5+1 + +* update. + ## 0.0.1 * initial release. diff --git a/android/build.gradle b/android/build.gradle index ab3cfdf..30ff57e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -22,6 +22,7 @@ rootProject.allprojects { apply plugin: 'com.android.library' android { + namespace "com.iotserv.flutter_smartlink" compileSdkVersion 30 defaultConfig { diff --git a/pubspec.yaml b/pubspec.yaml index b4c79fa..7931ec6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_smartlink description: flutter_smartlink for wifi smartconfig -version: 0.0.5 +version: 0.0.5+1 homepage: https://github.com/OpenIoTHub environment: