Skip to content

Commit 15ab98d

Browse files
update publish to custom flow
1 parent 3373fd7 commit 15ab98d

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@ name: Publish to pub.dev
33
on:
44
push:
55
tags:
6-
- '[0-9]+\.[0-9]+\.[0-9]+*'
6+
- 'v[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v{{version}'
77

8+
# Publish using custom workflow
89
jobs:
910
publish:
1011
permissions:
11-
id-token: write
12-
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
13-
with:
14-
environment: pub.dev
12+
id-token: write # Required for authentication using OIDC
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: dart-lang/setup-dart@v1
17+
- name: Install dependencies
18+
run: dart pub get
19+
- name: Publish
20+
run: dart pub publish --force

0 commit comments

Comments
 (0)