Skip to content

Commit 7b7cae2

Browse files
committed
git tag v0.0.4+2
1 parent 03e876e commit 7b7cae2

File tree

5 files changed

+47
-20
lines changed

5 files changed

+47
-20
lines changed

.github/workflows/publish.yml

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,42 @@
1-
name: Publish to Pub.dev
1+
# .github/workflows/publish.yml
2+
name: Publish to pub.dev
23

3-
on: [push, pull_request]
4+
on:
5+
push:
6+
tags:
7+
# must align with the tag-pattern configured on pub.dev, often just replace
8+
# with [0-9]+.[0-9]+.[0-9]+*
9+
- 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v'
10+
# If you prefer tags like '1.2.3', without the 'v' prefix, then use:
11+
# - '[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: ''
12+
# If your repository contains multiple packages consider a pattern like:
13+
# - 'my_package_name-v[0-9]+.[0-9]+.[0-9]+*'
414

515
jobs:
6-
publishing:
16+
publish:
17+
name: Publish on pub.dev
718
runs-on: ubuntu-latest
19+
20+
permissions:
21+
id-token: write
22+
contents: write
23+
824
steps:
9-
# 拉取仓库代码
10-
- name: "Checkout"
11-
uses: actions/checkout@v2
12-
- uses: subosito/flutter-action@v1
25+
- name: Clone repository
26+
uses: actions/checkout@v3
27+
28+
# This step adds the auth token for pub.dev
29+
- name: Set up Dart
30+
uses: dart-lang/setup-dart@v1
1331
with:
14-
channel: 'stable'
15-
- run: flutter pub get
16-
# 发布插件
17-
- name: Publish
18-
uses: sakebook/[email protected]
32+
sdk: stable
33+
34+
- name: Set up Flutter
35+
uses: subosito/flutter-action@v2
1936
with:
20-
credential: ${{ secrets.CREDENTIAL_JSON }}
21-
flutter_package: true
22-
skip_test: true
23-
dry_run: false
37+
channel: stable
38+
cache: true
39+
40+
- name: Publish to pub.dev
41+
id: pub_release
42+
uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1

.idea/misc.xml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.4+2
2+
3+
* namespace.
4+
15
## 0.0.1
26

37
* initial release.

android/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ rootProject.allprojects {
2222
apply plugin: 'com.android.library'
2323

2424
android {
25-
compileSdkVersion 30
25+
namespace "com.iotserv.flutter_oneshot"
26+
compileSdkVersion 34
2627

2728
defaultConfig {
28-
minSdkVersion 16
29+
minSdkVersion 21
2930
}
3031
}
3132

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_oneshot
22
description: OneShot for w60x wifi config
3-
version: 0.0.4+1
3+
version: 0.0.4+2
44
homepage: https://github.com/iotdevice/flutter_oneshot
55

66
environment:

0 commit comments

Comments
 (0)