@@ -36,38 +36,62 @@ jobs:
3636 cd "${{github.workspace}}/packages/dartcv"
3737 dart test -x skip-workflow
3838 publish-dartcv4 :
39- if : startsWith(github.ref, 'refs/tags/dartcv4-v')
4039 name : Publish dartcv4
40+ if : startsWith(github.ref, 'refs/tags/dartcv4-v')
4141 needs : [test]
4242 permissions :
4343 id-token : write # Required for authentication using OIDC
44- uses : dart-lang/setup-dart/.github/workflows/publish.yml@v1
45- with :
46- # Specify the github actions deployment environment
47- environment : pub.dev
48- working-directory : packages/dartcv
44+ runs-on : ubuntu-latest
45+ environment : pub.dev
46+ steps :
47+ - uses : actions/checkout@v4
48+ - uses : subosito/flutter-action@v2
49+ with :
50+ channel : " stable"
51+ - name : Install dependencies
52+ working-directory : packages/dartcv
53+ run : flutter pub get
54+ - name : Publish
55+ working-directory : packages/dartcv
56+ run : flutter pub publish --force
4957 publish-opencv-core :
5058 if : startsWith(github.ref, 'refs/tags/v')
5159 name : Publish opencv_core
5260 needs : [test]
5361 permissions :
5462 id-token : write # Required for authentication using OIDC
55- uses : dart-lang/setup-dart/.github/workflows/publish.yml@v1
56- with :
57- # Specify the github actions deployment environment
58- environment : pub.dev
59- working-directory : packages/opencv_core
63+ runs-on : ubuntu-latest
64+ environment : pub.dev
65+ steps :
66+ - uses : actions/checkout@v4
67+ - uses : subosito/flutter-action@v2
68+ with :
69+ channel : " stable"
70+ - name : Install dependencies
71+ working-directory : packages/opencv_core
72+ run : flutter pub get
73+ - name : Publish
74+ working-directory : packages/opencv_core
75+ run : flutter pub publish --force
6076 publish-opencv-dart :
6177 if : startsWith(github.ref, 'refs/tags/v')
6278 name : Publish opencv_dart
6379 needs : [test]
6480 permissions :
6581 id-token : write # Required for authentication using OIDC
66- uses : dart-lang/setup-dart/.github/workflows/publish.yml@v1
67- with :
68- # Specify the github actions deployment environment
69- environment : pub.dev
70- working-directory : packages/opencv_dart
82+ runs-on : ubuntu-latest
83+ environment : pub.dev
84+ steps :
85+ - uses : actions/checkout@v4
86+ - uses : subosito/flutter-action@v2
87+ with :
88+ channel : " stable"
89+ - name : Install dependencies
90+ working-directory : packages/opencv_dart
91+ run : flutter pub get
92+ - name : Publish
93+ working-directory : packages/opencv_dart
94+ run : flutter pub publish --force
7195 release :
7296 needs : [test, publish-opencv-dart, publish-opencv-core]
7397 runs-on : ubuntu-latest
0 commit comments