-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #648 from fluttercommunity/ci/auto_release_on_tag
Automate releasing to pub.dev using GitHub Actions
- Loading branch information
Showing
2 changed files
with
31 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,30 @@ | ||
name: publish | ||
|
||
on: | ||
push: | ||
tags: ["v*"] | ||
|
||
jobs: | ||
publish: | ||
name: Publish to pub.dev | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Dart | ||
uses: dart-lang/setup-dart@v1 | ||
with: | ||
sdk: 2.17.0 | ||
|
||
- name: Download pub.dev credentials | ||
env: | ||
CREDENTIALS: ${{ secrets.PUB_DEV_CREDENTIALS }} | ||
run: | | ||
mkdir -p ~/.pub-cache | ||
echo $CREDENTIALS > ~/.pub-cache/credentials.json | ||
- name: Publish | ||
run: dart pub publish -f |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: flutter_downloader test | ||
name: test | ||
|
||
on: | ||
push: | ||
|