From 3e62650800ee251ed1a159b80ce52f7295c7f4f9 Mon Sep 17 00:00:00 2001 From: Mohammed CHAHBOUN <69054810+M97Chahboun@users.noreply.github.com> Date: Thu, 20 Oct 2022 23:01:21 +0100 Subject: [PATCH] Enhance generate release auto (#96) * Update fastfile * Use github script for release * bump version from 2.2.14+21 to 2.2.15+21 by fastlane plugin --- .github/workflows/cd-stable.yaml | 13 ++++++++----- android/fastlane/Fastfile | 2 +- pubspec.yaml | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cd-stable.yaml b/.github/workflows/cd-stable.yaml index 529be8d..03db572 100644 --- a/.github/workflows/cd-stable.yaml +++ b/.github/workflows/cd-stable.yaml @@ -88,9 +88,12 @@ jobs: working-directory: android env: PLAY_STORE_CONFIG_JSON: ${{ secrets.PLAY_STORE_CONFIG_JSON }} - - name: Create Release for ${{env.project_version}} - uses: "marvinpinto/action-automatic-releases@latest" + - uses: actions/github-script@v6 with: - repo_token: "${{ secrets.REPO_TOKEN }}" - automatic_release_tag: "${{env.project_version}}" - prerelease: false \ No newline at end of file + script: | + github.rest.repos.createRelease({ + owner: context.repo.owner, + repo: context.repo.repo, + tag_name: ${{env.project_version}}, + generate_release_notes: true + }); \ No newline at end of file diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile index 054d764..821653f 100644 --- a/android/fastlane/Fastfile +++ b/android/fastlane/Fastfile @@ -45,7 +45,7 @@ lane :bump_version do |options| parts: options[:bump], pubspec: "../pubspec.yaml" ) - if(options[:push] && (options[:bump] || options[:bump_build])) + if(options[:push] && options[:bump]) sh "git config --global user.email m97.chahboun@gmail.com" sh "git config --global user.name Mohammed chahboun" sh "git config --global push.followTags true" diff --git a/pubspec.yaml b/pubspec.yaml index f18a3c1..77b8651 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 2.2.14+21 +version: 2.2.15+21 environment: sdk: ">=2.17.6 <3.0.0"