Skip to content

Commit

Permalink
git tag v0.0.4+2
Browse files Browse the repository at this point in the history
  • Loading branch information
matteriot committed Nov 4, 2024
1 parent 03e876e commit 7b7cae2
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 20 deletions.
51 changes: 35 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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@v3

# 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/[email protected]
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
channel: stable
cache: true

- name: Publish to pub.dev
id: pub_release
uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1
5 changes: 4 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.4+2

* namespace.

## 0.0.1

* initial release.
Expand Down
5 changes: 3 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ rootProject.allprojects {
apply plugin: 'com.android.library'

android {
compileSdkVersion 30
namespace "com.iotserv.flutter_oneshot"
compileSdkVersion 34

defaultConfig {
minSdkVersion 16
minSdkVersion 21
}
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_oneshot
description: OneShot for w60x wifi config
version: 0.0.4+1
version: 0.0.4+2
homepage: https://github.com/iotdevice/flutter_oneshot

environment:
Expand Down

0 comments on commit 7b7cae2

Please sign in to comment.