-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: release PR updates example app and releases example app (#252)
* chore: release PR updates example app and releases example app * docs: update release process
- Loading branch information
1 parent
7811314
commit c781fb9
Showing
3 changed files
with
51 additions
and
13 deletions.
There are no files selected for viewing
21 changes: 19 additions & 2 deletions
21
.github/workflows/android_release.yml → .github/workflows/android-release.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,14 +43,22 @@ jobs: | |
keep-unreleased-section: true | ||
tag-prefix: "" | ||
|
||
- name: Update Pubspec version | ||
uses: Dbono-dev/[email protected] | ||
with: | ||
changes: | | ||
{ | ||
"version": "${{ steps.update-changelog.outputs.version }}" | ||
} | ||
commentOutDevDependencies: "false" | ||
- name: Update root pubspec | ||
run: | | ||
sed -i "s/^version:.*/version: ${{ steps.update-changelog.outputs.version }} # automatically set by GH Action /" pubspec.yaml | ||
- name: Read and bump build number of example app | ||
id: read_build_number | ||
run: | | ||
version=$(grep '^version:' example/pubspec.yaml | awk '{print $2}') | ||
echo "Example version found: $version" | ||
IFS='+' read -r build_name build_number <<< "$version" | ||
new_build_number=$((build_number + 1)) | ||
echo "pubspec_build_number=$new_build_number" >> $GITHUB_OUTPUT | ||
- name: Update example app pubspec | ||
run: | | ||
sed -i "s/^version:.*/version: ${{ steps.update-changelog.outputs.version }}+${{ steps.read_build_number.outputs.pubspec_build_number }} # automatically set by GH Action /" example/pubspec.yaml | ||
- name: Create Pull Request | ||
uses: peter-evans/[email protected] | ||
|
@@ -62,9 +70,10 @@ jobs: | |
title: ${{ format('Auto Release Pull Request {0}', steps.update-changelog.outputs.version) }} | ||
body: | | ||
Make changes for release. | ||
- Update pubspec | ||
- Update pubspec.yaml | ||
- Update CHANGELOG.md | ||
- Update example/pubspec.yaml | ||
**Merging this PR will trigger a github release using the corresponding workflow.** | ||
**Merging this PR will trigger a github, pub dev and example app release using the corresponding workflows.** | ||
labels: | | ||
autorelease |
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