Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
flutter-version: "2.10.0"
channel: "stable"
- run: |
flutter --version
flutter pub get
flutter analyze --fatal-infos

- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
name: Publish new plugin version
on:
workflow_run:
workflows: ["Perform static code analysis through Dart CLI"]
types:
- completed
workflow_dispatch:
push:
branches:
- release
- master

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1

- name: Run static dart analysis with fatal infos
run: dart analyze --fatal-infos
- uses: subosito/flutter-action@v2
with:
flutter-version: "2.10.0"
channel: "stable"
- run: |
flutter --version
flutter pub get
flutter analyze --fatal-infos

- name: Create credentials file
run: echo $PUB_CREDENTIALS > ~/pub-credentials.json
Expand All @@ -35,4 +34,4 @@ jobs:
PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }}

- name: Publish
run: dart pub publish --dry-run
run: dart pub publish --force
13 changes: 5 additions & 8 deletions .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
pull_request:
types: [opened, reopened, review_requested]
branches:
- "release"
- "master"
- master
push:
branches:
- master
Expand All @@ -21,9 +20,7 @@ jobs:
with:
flutter-version: "2.10.0"
channel: "stable"
- run: flutter --version
- name: Fetch packages
run: flutter pub get

- name: Run static dart analysis with fatal infos
run: flutter analyze --fatal-infos
- run: |
flutter --version
flutter pub get
flutter analyze --fatal-infos