-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (32 loc) · 1.11 KB
/
publish.yml
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
name: Publish to pub.dev
on:
push:
tags:
# Must align with the tag-pattern configured on pub.dev.
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
publish:
name: Publish
timeout-minutes: 10
runs-on: ubuntu-latest
permissions:
id-token: write # Allows to publish to pub.dev without personal credentials
steps:
- name: Checkout
uses: actions/[email protected]
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.9'
channel: 'stable'
- name: Dart and Flutter Package Publisher
uses: k-paxian/[email protected]
with:
# (Required) Token from ~/.pub-cache/credentials.json. Use secrets.OAUTH_ACCESS_TOKEN
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }}
# (Required) Token from ~/.pub-cache/credentials.json. Use secrets.OAUTH_REFRESH_TOKEN
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }}
skipTests: true
format: true
force: false
# (Optional) Flutter branch to use, stable, master, main, dev, etc.
flutterBranch: stable