Skip to content

Commit 5e25cf3

Browse files
authored
Prepare for automated publishing (#4055)
1 parent 6391c68 commit 5e25cf3

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/post_summaries.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# A CI configuration to write comments on PRs.
2+
3+
name: Comment on the pull request
4+
permissions: read-all
5+
6+
on:
7+
workflow_run:
8+
workflows:
9+
- Publish
10+
types:
11+
- completed
12+
13+
jobs:
14+
upload:
15+
uses: dart-lang/ecosystem/.github/workflows/post_summaries.yaml@main
16+
permissions:
17+
pull-requests: write

.github/workflows/publish.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# A CI configuration to auto-publish pub packages.
2+
3+
name: Publish
4+
permissions: read-all
5+
6+
on:
7+
pull_request:
8+
branches: [ main ]
9+
types: [opened, synchronize, reopened, labeled, unlabeled]
10+
push:
11+
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]
12+
13+
jobs:
14+
publish:
15+
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
16+
with:
17+
write-comments: false
18+
permissions:
19+
id-token: write
20+
pull-requests: write

0 commit comments

Comments
 (0)