-
Notifications
You must be signed in to change notification settings - Fork 65
29 lines (27 loc) · 954 Bytes
/
publish.yml
File metadata and controls
29 lines (27 loc) · 954 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
# .github/workflows/publish.yml
name: Publish to pub.dev
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: eg '3.0.0'
# Publish using custom workflow
jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
runs-on: ubuntu-latest
# use dart-lang/setup-dart/.github/workflows/publish.yml@v1 when https://github.com/dart-lang/setup-dart/issues/68 is fixed
steps:
- uses: actions/checkout@v6
- uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c # v1.7.1
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # v2.21.0
with:
channel: 'stable'
- name: Install dependencies
run: |
flutter pub get
working-directory: ./packages/posthog_flutter
- name: Publish
run: |
flutter pub publish --force
working-directory: ./packages/posthog_flutter