Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

push version update to pubspec file #50

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading