-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
require dart 3.0; add publishing automation (#282)
- Loading branch information
1 parent
21976d6
commit 6bd246f
Showing
5 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Comment on PRs | ||
|
||
on: | ||
# Trigger this workflow after the Publish workflow completes. This workflow | ||
# will have permissions to create comments on the PR, even if the original | ||
# workflow couldn't. | ||
workflow_run: | ||
workflows: | ||
- Publish | ||
types: | ||
- completed | ||
|
||
jobs: | ||
upload: | ||
uses: dart-lang/ecosystem/.github/workflows/post_summaries.yaml@main | ||
permissions: | ||
pull-requests: write |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# A CI configuration to auto-publish pub packages. | ||
|
||
name: Publish | ||
|
||
on: | ||
# Trigger on pull requests that target the default branch. | ||
pull_request: | ||
branches: [ master ] | ||
# Also, trigger when tags are pushed to the repo. | ||
push: | ||
tags: [ 'v[0-9]+.[0-9]+.[0-9]+*' ] | ||
|
||
# The script below will perform publishing checks (version checks, publishing | ||
# dry run, ...) when run on a PR, and perform an actual pub publish when run as | ||
# a result of a git tag event. | ||
jobs: | ||
publish: | ||
if: ${{ github.repository_owner == 'google' }} | ||
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main | ||
with: | ||
write-comments: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters