-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 851 Bytes
/
publish.yml
File metadata and controls
33 lines (28 loc) · 851 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
# .github/workflows/publish.yml
name: Publish to pub.dev
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+' # tag pattern on pub.dev: 'v{{version}'
jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
runs-on: ${{ matrix.os }}
# environment: pub.dev
strategy:
matrix:
os: [ubuntu-latest]
sdk: [3.7.0]
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '1.17.0'
- name: Publish to pub.dev
run: dart pub publish --force