Skip to content

Commit c6735b4

Browse files
authored
Update publish.yaml
1 parent c55fd79 commit c6735b4

1 file changed

Lines changed: 25 additions & 8 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,31 @@
1-
name: Publish to pub.dev
2-
1+
name: Publish new plugin version to pub.dev
2+
run-name: >-
3+
[shared_storage] package publish (${{ github.ref_name }}) triggered by @${{ github.actor }}
34
on:
45
push:
56
tags:
6-
- 'v[0-9]+.[0-9]+.[0-9]+*'
7-
7+
- "v[0-9]+.[0-9]+.[0-9]+"
88
jobs:
99
publish:
10+
runs-on: ubuntu-latest
1011
permissions:
11-
id-token: write # Required for authentication using OIDC
12-
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
13-
# with:
14-
# working-directory: path/to/package/within/repository
12+
id-token: write # This is required for requesting the JWT
13+
defaults:
14+
run:
15+
working-directory: ./
16+
steps:
17+
# Checkout repository
18+
- uses: actions/checkout@v4
19+
- uses: subosito/flutter-action@v2
20+
with:
21+
channel: 'stable' # or: 'beta', 'dev', 'master' (or 'main')
22+
- run: flutter --version
23+
24+
- name: Install dependencies
25+
run: flutter pub get
26+
27+
- name: Run Dart analyzer
28+
run: flutter analyze --fatal-infos
29+
30+
- name: Publish to pub dev
31+
run: dart pub publish --force

0 commit comments

Comments
 (0)