Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Configure autopublishing (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
HosseinYousefi committed Sep 1, 2023
1 parent 2b5c459 commit 7420076
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 13 deletions.
File renamed without changes.
19 changes: 19 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# A CI configuration to auto-publish pub packages.

name: Publish

on:
pull_request:
branches: [ main ]
push:
tags: [ '[A-z]+-v[0-9]+.[0-9]+.[0-9]+' ]

jobs:
publish:
if: ${{ github.repository_owner == 'dart-lang' }}
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
with:
use-flutter: true # Since package:jni uses Flutter.
permissions:
id-token: write # Required for authentication using OIDC
pull-requests: write # Required for writing the pull request note
File renamed without changes.
2 changes: 1 addition & 1 deletion jni/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -519,5 +519,5 @@ packages:
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.1.0-262.3.beta <4.0.0"
dart: ">=3.1.0 <4.0.0"
flutter: ">=2.11.0"
2 changes: 1 addition & 1 deletion jni/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: '>=3.1.0-262.3.beta <4.0.0'
sdk: '>=3.1.0 <4.0.0'

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
Expand Down
2 changes: 1 addition & 1 deletion jni/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ topics:
- jni

environment:
sdk: '>=3.1.0-262.3.beta <4.0.0'
sdk: '>=3.1.0 <4.0.0'
flutter: '>=2.11.0'

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion jnigen/android_test_runner/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: '>=3.1.0-262.3.beta <4.0.0'
sdk: '>=3.1.0 <4.0.0'

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
Expand Down
2 changes: 1 addition & 1 deletion jnigen/example/in_app_java/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: '>=3.1.0-262.3.beta <4.0.0'
sdk: '>=3.1.0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion jnigen/example/kotlin_plugin/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish_to: "none"
version: 1.0.0+1

environment:
sdk: '>=3.1.0-262.3.beta <4.0.0'
sdk: '>=3.1.0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion jnigen/example/kotlin_plugin/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version: 0.0.1
publish_to: none

environment:
sdk: '>=3.1.0-262.3.beta <4.0.0'
sdk: '>=3.1.0 <4.0.0'
flutter: ">=1.17.0"

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion jnigen/example/notification_plugin/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: '>=3.1.0-262.3.beta <4.0.0'
sdk: '>=3.1.0 <4.0.0'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion jnigen/example/notification_plugin/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none
homepage: https://github.com/dart-lang/jnigen

environment:
sdk: '>=3.1.0-262.3.beta <4.0.0'
sdk: '>=3.1.0 <4.0.0'
flutter: ">=2.11.0"

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion jnigen/example/pdfbox_plugin/dart_example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none
# homepage: https://www.example.com

environment:
sdk: '>=3.1.0-262.3.beta <4.0.0'
sdk: '>=3.1.0 <4.0.0'

dependencies:
path: ^1.8.0
Expand Down
2 changes: 1 addition & 1 deletion jnigen/example/pdfbox_plugin/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: '>=3.1.0-262.3.beta <4.0.0'
sdk: '>=3.1.0 <4.0.0'

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
Expand Down
2 changes: 1 addition & 1 deletion jnigen/example/pdfbox_plugin/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish_to: none
homepage: https://github.com/dart-lang/jnigen

environment:
sdk: '>=3.1.0-262.3.beta <4.0.0'
sdk: '>=3.1.0 <4.0.0'
#flutter: ">=2.11.0"

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion jnigen/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version: 0.6.0
repository: https://github.com/dart-lang/jnigen/tree/main/jnigen

environment:
sdk: ">=3.1.0-262.3.beta <4.0.0"
sdk: ">=3.1.0 <4.0.0"

topics:
- interop
Expand Down

0 comments on commit 7420076

Please sign in to comment.