Skip to content

Commit 83f7676

Browse files
author
louisdachet
committed
ci: use a custom script to publish packages
1 parent 0f1f5e4 commit 83f7676

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.github/workflows/publish-to-pub-on-tag.yaml

+26-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,30 @@ on:
66

77
jobs:
88
publish:
9+
runs-on: ubuntu-latest
10+
11+
# Required for publishing to pub.dev
912
permissions:
10-
id-token: write # Required for authentication using OIDC
11-
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
13+
id-token: write
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- id: dotenv
19+
uses: falti/dotenv-action@v0.2.8
20+
with:
21+
path: .github/workflows/.env
22+
23+
- uses: subosito/flutter-action@v2.5.0
24+
with:
25+
flutter-version: ${{ steps.dotenv.outputs.flutter_version }}
26+
channel: "stable"
27+
cache: true
28+
cache-key: flutter-macos-${{ steps.dotenv.outputs.flutter_version }}
29+
cache-path: ${{ runner.tool_cache }}/flutter-${{ steps.dotenv.outputs.flutter_version }}
30+
31+
- name: Install Dependencies
32+
run: flutter pub get
33+
34+
- name: Publish to pub.dev
35+
run: flutter pub publish --force

0 commit comments

Comments
 (0)