File tree Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Original file line number Diff line number Diff line change 1
- name : Release binaries
1
+ name : Publish couchbase package
2
2
3
3
permissions :
4
+ # This is required for uploading release artifacts.
4
5
contents : write
6
+ # This is required for authentication with pub.dev using OIDC.
7
+ id-token : write
5
8
6
9
on :
7
10
push :
24
27
25
28
- name : Install Dart
26
29
uses : dart-lang/setup-dart@v1
30
+ with :
31
+ sdk : stable
27
32
28
33
- name : Install Melos
29
34
run : dart pub global activate melos
74
79
75
80
- name : Install Dart
76
81
uses : dart-lang/setup-dart@v1
82
+ with :
83
+ sdk : stable
77
84
78
85
- name : Install Melos
79
86
run : dart pub global activate melos
@@ -102,17 +109,30 @@ jobs:
102
109
name : libCouchbaseDart-linux-${{ matrix.arch }}
103
110
path : native/build/libCouchbaseDart-linux-${{ matrix.arch }}.tar.gz
104
111
105
- Release :
106
- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/couchbase-v')
112
+ Publish :
113
+ if :
114
+ github.event_name == 'push' && startsWith(github.ref,
115
+ ' refs/tags/couchbase-v' )
107
116
needs : [macOS, Linux]
108
117
runs-on : ubuntu-latest
109
118
steps :
110
- - name : Download all archives
119
+ - name : Download all binary archives
111
120
uses : actions/download-artifact@v3
112
121
with :
113
122
path : archives
114
123
115
- - name : Create Release
124
+ - name : Create GitHub release
116
125
uses : softprops/action-gh-release@v1
117
126
with :
118
127
files : archives/**
128
+
129
+ - name : Install Dart
130
+ uses : dart-lang/setup-dart@v1
131
+
132
+ - name : Install dependencies
133
+ working-directory : package/couchbase
134
+ run : dart pub get
135
+
136
+ - name : Publish package
137
+ working-directory : package/couchbase
138
+ run : dart pub publish --force
You can’t perform that action at this time.
0 commit comments