Skip to content

Commit

Permalink
push version update to pubspec file
Browse files Browse the repository at this point in the history
  • Loading branch information
Subhash703 committed Nov 8, 2024
1 parent 726522f commit 169f91c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ jobs:
echo "new_version=$NEW_VERSION" >> $GITHUB_ENV
shell: bash
- name: Stash changes
run: git reset --hard

- name: git config
run: |
Expand All @@ -115,12 +113,18 @@ jobs:
run: |
# Update the version in pubspec.yaml
sed -i "s/^version: .*/version: ${{ env.new_version }}/" pubspec.yaml
sed -i "s/^ s.version.*/ s.version = '${{ env.new_version }}'/g" ios/hypersdkflutter.podspec
# Commit the updated pubspec.yaml file
git add pubspec.yaml
git add ios/hypersdkflutter.podspec
git commit -m "chore: bump version to ${{ env.new_version }}"
git push origin main
shell: bash

- name: Stash changes
run: git reset --hard

- name: Tag the new version
run: |
git tag "v${{ env.new_version }}"
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 4.0.23
* Fixed issue in github workflow

# 4.0.22
* Added github actions workflow

Expand Down

0 comments on commit 169f91c

Please sign in to comment.