Skip to content

Commit 457123b

Browse files
committed
ci: publish couchbase package from CI
1 parent e82c6cc commit 457123b

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/release-binaries.yaml renamed to .github/workflows/publish-couchbase.yaml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
name: Release binaries
1+
name: Publish couchbase package
22

33
permissions:
4+
# This is required for uploading release artifacts.
45
contents: write
6+
# This is required for authentication with pub.dev using OIDC.
7+
id-token: write
58

69
on:
710
push:
@@ -24,6 +27,8 @@ jobs:
2427

2528
- name: Install Dart
2629
uses: dart-lang/setup-dart@v1
30+
with:
31+
sdk: stable
2732

2833
- name: Install Melos
2934
run: dart pub global activate melos
@@ -74,6 +79,8 @@ jobs:
7479

7580
- name: Install Dart
7681
uses: dart-lang/setup-dart@v1
82+
with:
83+
sdk: stable
7784

7885
- name: Install Melos
7986
run: dart pub global activate melos
@@ -102,17 +109,30 @@ jobs:
102109
name: libCouchbaseDart-linux-${{ matrix.arch }}
103110
path: native/build/libCouchbaseDart-linux-${{ matrix.arch }}.tar.gz
104111

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')
107116
needs: [macOS, Linux]
108117
runs-on: ubuntu-latest
109118
steps:
110-
- name: Download all archives
119+
- name: Download all binary archives
111120
uses: actions/download-artifact@v3
112121
with:
113122
path: archives
114123

115-
- name: Create Release
124+
- name: Create GitHub release
116125
uses: softprops/action-gh-release@v1
117126
with:
118127
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

0 commit comments

Comments
 (0)