Skip to content

Commit

Permalink
add automated publishing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bachue committed Dec 2, 2024
1 parent b719441 commit 2e92c17
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish-base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish qiniu_sdk_base to pub.dev
on:
push:
tags:
- "base-[0-9]+.[0-9]+.[0-9]+"
jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./base
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
- name: Publish
run: dart pub publish --force
22 changes: 22 additions & 0 deletions .github/workflows/publish-flutter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish qiniu_flutter_sdk to pub.dev
on:
push:
tags:
- "flutter-[0-9]+.[0-9]+.[0-9]+"
jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./flutter
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install dependencies
run: flutter pub get
- name: Publish
run: flutter pub publish --force

0 comments on commit 2e92c17

Please sign in to comment.