Skip to content

Commit 2e92c17

Browse files
committed
add automated publishing scripts
1 parent b719441 commit 2e92c17

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/publish-base.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish qiniu_sdk_base to pub.dev
2+
on:
3+
push:
4+
tags:
5+
- "base-[0-9]+.[0-9]+.[0-9]+"
6+
jobs:
7+
publish:
8+
permissions:
9+
id-token: write # Required for authentication using OIDC
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: ./base
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: dart-lang/setup-dart@v1
17+
- name: Install dependencies
18+
run: dart pub get
19+
- name: Publish
20+
run: dart pub publish --force

.github/workflows/publish-flutter.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish qiniu_flutter_sdk to pub.dev
2+
on:
3+
push:
4+
tags:
5+
- "flutter-[0-9]+.[0-9]+.[0-9]+"
6+
jobs:
7+
publish:
8+
permissions:
9+
id-token: write # Required for authentication using OIDC
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: ./flutter
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: subosito/flutter-action@v2
17+
with:
18+
channel: stable
19+
- name: Install dependencies
20+
run: flutter pub get
21+
- name: Publish
22+
run: flutter pub publish --force

0 commit comments

Comments
 (0)