-
Notifications
You must be signed in to change notification settings - Fork 96
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 #164 from RodrigoSMarques/dev
Release 6.0.0
- Loading branch information
Showing
103 changed files
with
6,929 additions
and
6,806 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Plugin code analysis | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
paths-ignore: | ||
- "**/README.md" | ||
- "docs/**" | ||
pull_request: | ||
branches: | ||
- "master" | ||
- "dev" | ||
|
||
jobs: | ||
check-lint-flutter: | ||
name: Lint (flutter) | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
cache: true | ||
- name: Lint | ||
run: flutter format --output=none --set-exit-if-changed lib/ | ||
check-code-analysis-flutter: | ||
name: Code analysis (flutter) | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
cache: true | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- name: Analyze code | ||
run: flutter analyze --no-fatal-infos |
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,41 @@ | ||
name: Create sample app APK | ||
|
||
on: | ||
# pull_request: | ||
# branches: | ||
# - "master" | ||
# paths-ignore: | ||
# - "**/README.md" | ||
# - "**/CHANGELOG.md" | ||
# - "docs/**" | ||
push: | ||
tags: | ||
- 'v*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build APK | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: "12.x" | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
channel: "stable" | ||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
cache: true | ||
- name: Make executeable build-apk.sh | ||
run: chmod +x tool/build-apk.sh | ||
- name: Install dependencies & Build apk | ||
run: tool/build-apk.sh | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: release-apk | ||
path: ./example/build/app/outputs/apk/release/app-release.apk |
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,47 @@ | ||
name: Deploying the sample app to the web | ||
|
||
on: | ||
# pull_request: | ||
# branches: | ||
# - "master" | ||
# paths-ignore: | ||
# - "**/README.md" | ||
# - "**/CHANGELOG.md" | ||
# - "docs/**" | ||
push: | ||
tags: | ||
- 'v*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build Web | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
cache: true | ||
- name: Make executeable build-web.sh | ||
run: chmod +x tool/build-web.sh | ||
- name: Install dependencies & Build web | ||
run: tool/build-web.sh | ||
- name: Deploy to Netlify | ||
if: ${{ github.repository == 'RodrigoSMarques/flutter_branch_sdk' }} | ||
uses: nwtgck/[email protected] | ||
with: | ||
publish-dir: './example/build/web' | ||
production-branch: master | ||
production-deploy: true | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
deploy-message: "Deploy from GitHub Actions" | ||
enable-pull-request-comment: false | ||
enable-commit-comment: true | ||
overwrites-pull-request-comment: true | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
timeout-minutes: 1 |
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,24 @@ | ||
name: PR Branch MASTER to BUGFIX | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
pull-request: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: pull-request-master-to-bugfix | ||
if: ${{ github.repository == 'RodrigoSMarques/flutter_branch_sdk' }} | ||
uses: repo-sync/[email protected] | ||
with: | ||
source_branch: "master" | ||
destination_branch: "bugfix" | ||
pr_title: "PR Branch MASTER into BUGFIX" | ||
pr_body: "👑 *An automated PR*" | ||
pr_label: "auto-pr" | ||
pr_draft: false | ||
pr_allow_empty: false | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
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,35 @@ | ||
name: Publish plugin - pub.dev | ||
|
||
on: | ||
push: | ||
# branches: | ||
# - "dev" | ||
tags: | ||
- 'v*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
cache: true | ||
|
||
- name: Publish flutter package | ||
uses: k-paxian/[email protected] | ||
# uses: RodrigoSMarques/dart-package-publisher@master | ||
with: | ||
accessToken: ${{ secrets.PUBDEV_GOOGLE_ACCOUNT_ACCESS_TOKEN }} | ||
refreshToken: ${{ secrets.PUBDEV_GOOGLE_ACCOUNT_REFRESH_TOKEN }} | ||
flutter: true | ||
format: true | ||
skipTests: true | ||
dryRunOnly: true | ||
# docs: true | ||
|
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,22 @@ | ||
name: Send Dispatch to Branch fork | ||
|
||
on: | ||
push: | ||
# branches: | ||
# - "master" | ||
# - "dev" | ||
tags: | ||
- 'v*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
send-dispatch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Repository Dispatch | ||
if: ${{ github.repository == 'RodrigoSMarques/flutter_branch_sdk' }} | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ secrets.TOKEN_BRANCH_UPSTREAM}} | ||
repository: BranchMetrics/flutter_branch_sdk | ||
event-type: new-release |
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,44 @@ | ||
name: 'Upstream Sync' | ||
|
||
on: | ||
repository_dispatch: | ||
types: [new-release] | ||
workflow_dispatch: # click the button on Github repo! | ||
|
||
jobs: | ||
update_repository_branch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Repository master | ||
uses: TobKed/github-forks-sync-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
upstream_repository: RodrigoSMarques/flutter_branch_sdk | ||
#target_repository: BranchMetrics/flutter_branch_sdk | ||
target_repository: r-s-marques/flutter_branch_sdk | ||
upstream_branch: master | ||
target_branch: master | ||
force: true | ||
tags: true | ||
- name: Repository dev | ||
uses: TobKed/github-forks-sync-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
upstream_repository: RodrigoSMarques/flutter_branch_sdk | ||
#target_repository: BranchMetrics/flutter_branch_sdk | ||
target_repository: r-s-marques/flutter_branch_sdk | ||
upstream_branch: dev | ||
target_branch: dev | ||
force: true | ||
tags: true | ||
- name: Repository bugfix | ||
uses: TobKed/github-forks-sync-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
upstream_repository: RodrigoSMarques/flutter_branch_sdk | ||
#target_repository: BranchMetrics/flutter_branch_sdk | ||
target_repository: r-s-marques/flutter_branch_sdk | ||
upstream_branch: bugfix | ||
target_branch: bugfix | ||
force: true | ||
tags: true |
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
Oops, something went wrong.
71cd1d5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://flutter-branch-sdk.netlify.app as production
🚀 Deployed on https://62c3b6e20eb403020bd343e3--flutter-branch-sdk.netlify.app