-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* contribute a publish_internal.yaml file * update readmes * fix script
- Loading branch information
1 parent
515ab32
commit 6344210
Showing
5 changed files
with
54 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# A CI configuration to auto-publish pub packages from dart-lang/ecosystem. | ||
|
||
# We don't use the regular publish.yaml script here in order to dogfood the | ||
# publishing code at head. | ||
|
||
name: Publish | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
push: | ||
tags: [ '[A-z]+-v[0-9]+.[0-9]+.[0-9]+*' ] | ||
|
||
jobs: | ||
publish: | ||
if: github.repository_owner == 'dart-lang' | ||
|
||
# These permissions are required for authentication using OIDC and to enable | ||
# us to create comments on PRs. | ||
permissions: | ||
id-token: write | ||
pull-requests: write | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b | ||
- uses: dart-lang/setup-dart@a57a6c04cf7d4840e88432aad6281d1e125f0d46 | ||
|
||
- name: Pub get | ||
working-directory: pkgs/firehose | ||
run: dart pub get | ||
|
||
- name: Validate packages | ||
if: ${{ github.event_name == 'pull_request' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ISSUE_NUMBER: ${{ github.event.number }} | ||
run: dart pkgs/firehose/bin/firehose.dart --validate | ||
|
||
- name: Publish tagged package | ||
if: ${{ github.event_name == 'push' }} | ||
run: dart pkgs/firehose/bin/firehose.dart --publish |
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
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