-
-
Notifications
You must be signed in to change notification settings - Fork 37
31 lines (28 loc) · 827 Bytes
/
publish.yaml
File metadata and controls
31 lines (28 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Publish new plugin version to pub.dev
run-name: >-
[shared_storage] package publish (${{ github.ref_name }}) triggered by @${{ github.actor }}
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write # This is required for requesting the JWT
defaults:
run:
working-directory: ./
steps:
# Checkout repository
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable' # or: 'beta', 'dev', 'master' (or 'main')
- run: flutter --version
- name: Install dependencies
run: flutter pub get
- name: Run Dart analyzer
run: flutter analyze --fatal-infos
- name: Publish to pub dev
run: dart pub publish --force