Skip to content

Commit

Permalink
Merge pull request #2 from RodrigoSMarques/master
Browse files Browse the repository at this point in the history
Synchronization of repositories with the latest releases
  • Loading branch information
amedina-branch authored Jul 24, 2024
2 parents ba13e72 + f272fba commit 53e2e17
Show file tree
Hide file tree
Showing 65 changed files with 2,786 additions and 2,074 deletions.
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Feature request
about: Suggest an idea for this project
title: 'Please replace with a clear and descriptive title'
labels: 'type: feature'
assignees: ''
---

<!--
Thanks for suggesting a new feature!
Please fill in the sections below.
-->

**Which problem is this feature request solving?**

<!--
Example: I'm always frustrated when [...]
-->

**Describe the solution you'd like**

<!--
Example: This could be fixed by [...]
-->

**Describe alternatives you've considered**

<!--
Example: Another solution would be [...]
-->

**Can you submit a pull request?**

Yes/No.

<!--
Pull requests are welcome! If you would like to help us add this feature, please check our
[contributions guidelines](../blob/main/CONTRIBUTING.md).
-->
11 changes: 7 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ on:
push:
branches:
- "master"
- "dev"
- "bugfix"
paths-ignore:
- "**/README.md"
- "docs/**"
pull_request:
branches:
- "master"
- "dev"
- "bugfix"

jobs:
check-lint-flutter:
Expand All @@ -19,25 +22,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup flutter
uses: subosito/flutter-action@v2
with:
cache: true
- name: Lint
run: flutter format --output=none --set-exit-if-changed lib/
run: dart 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
uses: actions/checkout@v4
- 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
run: flutter analyze --no-fatal-infos
16 changes: 8 additions & 8 deletions .github/workflows/deploy-apk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-java@v1
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: "12.x"
- uses: subosito/flutter-action@v1
with:
channel: "stable"
java-version: "17.x"
distribution: "zulu"
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
Expand All @@ -35,7 +34,8 @@ jobs:
run: chmod +x tool/build-apk.sh
- name: Install dependencies & Build apk
run: tool/build-apk.sh
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v3
with:
name: release-apk
path: ./example/build/app/outputs/apk/release/app-release.apk
path: ./example/build/app/outputs/apk/release/app-release.apk
if-no-files-found: error
6 changes: 3 additions & 3 deletions .github/workflows/deploy-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
Expand All @@ -31,7 +31,7 @@ jobs:
run: tool/build-web.sh
- name: Deploy to Netlify
if: ${{ github.repository == 'RodrigoSMarques/flutter_branch_sdk' }}
uses: nwtgck/actions-netlify@v1.1
uses: nwtgck/actions-netlify@v3
with:
publish-dir: './example/build/web'
production-branch: master
Expand All @@ -44,4 +44,4 @@ jobs:
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1
timeout-minutes: 1
6 changes: 3 additions & 3 deletions .github/workflows/pr-bugfix-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: pull-request-master-to-bugfix
if: ${{ github.repository == 'RodrigoSMarques/flutter_branch_sdk' }}
uses: repo-sync/pull-request@v2.6.2
uses: repo-sync/pull-request@v2
with:
source_branch: "bugfix"
destination_branch: "dev"
Expand All @@ -21,4 +21,4 @@ jobs:
pr_label: "auto-pr"
pr_draft: false
pr_allow_empty: false
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/pr-master-bugfix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: pull-request-master-to-bugfix
if: ${{ github.repository == 'RodrigoSMarques/flutter_branch_sdk' }}
uses: repo-sync/pull-request@v2.6.2
uses: repo-sync/pull-request@v2
with:
source_branch: "master"
destination_branch: "bugfix"
Expand All @@ -21,4 +21,4 @@ jobs:
pr_label: "auto-pr"
pr_draft: false
pr_allow_empty: false
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
28 changes: 11 additions & 17 deletions .github/workflows/publish-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,28 @@ name: Publish plugin - pub.dev

on:
push:
# branches:
# - "dev"
tags:
- 'v*'
workflow_dispatch:

jobs:
release:
publish:
permissions:
id-token: write # Required for authentication using OIDC
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true

- name: Install dependencies
run: dart pub get
- name: Generate documentation
run: dart doc
- 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

#run: dart pub publish --dry-run
run: dart pub publish --force
2 changes: 1 addition & 1 deletion .github/workflows/send-dispatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- name: Repository Dispatch
if: ${{ github.repository == 'RodrigoSMarques/flutter_branch_sdk' }}
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.TOKEN_BRANCH_UPSTREAM}}
repository: BranchMetrics/flutter_branch_sdk
Expand Down
Loading

0 comments on commit 53e2e17

Please sign in to comment.