Skip to content

Commit

Permalink
Enhance generate release auto (#96)
Browse files Browse the repository at this point in the history
* Update fastfile

* Use github script for release

* bump version from 2.2.14+21 to 2.2.15+21 by fastlane plugin
  • Loading branch information
M97Chahboun committed Oct 20, 2022
1 parent 6302f8c commit 3e62650
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/cd-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
script: |
github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: ${{env.project_version}},
generate_release_notes: true
});
2 changes: 1 addition & 1 deletion android/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]"
sh "git config --global user.name Mohammed chahboun"
sh "git config --global push.followTags true"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3e62650

Please sign in to comment.