-
-
Notifications
You must be signed in to change notification settings - Fork 373
39 lines (30 loc) · 754 Bytes
/
release.yml
File metadata and controls
39 lines (30 loc) · 754 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
name: Release to pub.dev
on:
workflow_dispatch:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
test:
name: Test
uses: ./.github/workflows/test.yml
secrets: inherit
publish:
needs: [test]
name: Publish
permissions:
id-token: write # This is required for authentication using OIDC
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.7.12"
- name: Install dependencies
run: dart pub get
- name: code format
run: dart format lib/*/*.dart lib/*.dart
- name: Publish
run: dart pub publish --force