-
-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (35 loc) · 926 Bytes
/
publish.yml
File metadata and controls
44 lines (35 loc) · 926 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
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Publish plugin
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Setup Java JDK
uses: actions/setup-java@v4.5.0
with:
distribution: temurin
java-version: "17"
- name: Flutter action
uses: subosito/flutter-action@v2.16.0
with:
channel: stable
- name: Flutter version
run: flutter --version
- name: Download pub dependencies
run: flutter pub get
- name: Run analyzer
run: flutter analyze --fatal-infos
- name: Run tests
run: flutter test
publish:
needs: 'test'
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
environment: 'pub.dev'