Skip to content

Commit d1c0cfb

Browse files
authored
ci: add publish workflow (#227)
1 parent b8e6a11 commit d1c0cfb

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# A workflow that publishes the library to CocoaPods
16+
name: Publish to pub.dev
17+
18+
on:
19+
push:
20+
tags:
21+
- "v[0-9]+.[0-9]+.[0-9]+"
22+
workflow_dispatch: # manually trigger if previous runs failed
23+
24+
concurrency:
25+
group: publishing
26+
cancel-in-progress: true
27+
28+
# Publish using the reusable workflow from dart-lang.
29+
jobs:
30+
publish:
31+
permissions:
32+
id-token: write # Required for authentication using OIDC
33+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1

0 commit comments

Comments
 (0)