<commit_before>## Release Process ##

### Step 1: Creating a release branch ###

The branch structure in Aztec iOS is based on the [Git Flow](https://nvie.com/posts/a-successful-git-branching-model/) methodology.

These are the main branches involved in the release process:
```
master: Kept up to date with the latest release.
develop: Bleeding edge branch with all of the latest changes.
release/x.y.z: Version branch, which we will use during the release process.
```
The first step in the process is creating the version branch.

The version branch is what allows work to continue in develop while also having a frozen snapshot of what we’re releasing.

Using the command line, the process is pretty straightforward:

```
git checkout develop
git pull
git checkout -b release/x.y.z
git push origin -u release/x.y.z
```

Make sure to update the field `s.version` in both of these files to the `x.y.z` number
```
WordPress-Aztec-iOS.podspec
WordPress-Editor-iOS.podespec
```

Open a PR on github where you target the `master` branch with the `release/x.y.z` branch and call it `Release x.y.z`


### Step 2: Testing the Integration ###

Before going any further, tt's normally good practice to test the Aztec integration into [WordPress-iOS project](https://github.com/wordpress-mobile/WordPress-iOS), to make sure we won’t have to do the release process twice.

Make sure WordPress-iOS’s podfile specifies the SAME (and latest) commit number for both of these:
```
pod 'WordPress-Aztec-iOS', :git => 'https://github.com/wordpress-mobile/AztecEditor-iOS.git', :commit => 'e0fc55abb4809b3b23b6d8b56791798af864025d'
pod 'WordPress-Editor-iOS', :git => 'https://github.com/wordpress-mobile/AztecEditor-iOS.git', :commit => 'e0fc55abb4809b3b23b6d8b56791798af864025d'
```
The things we want to look out for are:

- That the pod can be properly installed in WPiOS.
- That WPiOS builds properly.
- That you can open a post through the App, using both the classic editor and Gutenberg.

### Step 3: Merge the branch ###

If the release PR is approved and all is working correctly in WP-iOS merge the release branch to master.

### Step 4: Push the POD. ###

*Automated Process*

Create a new release on Github targetting the master branch and name it `Release x.y.z`

Set a tag with the value `x.y.z` .  

On the description field and the content of the changelog for this version

Press the `Publish release` button

At this moment the CI automation should notice your tag and after some minutes you should get the new pod publish on CocoaPods master trunk.

If this for some reason fails chech the manual process bellow

*Manual Process*

Pushing the PODs is a bit different than in other repos due to the fact that this repo has two podspecs.

The recommended steps are:

Lint the core library
```
bundle exec pod lib lint WordPress-Aztec-iOS.podspec
```

If all is good proceed to
```
bundle exec pod trunk push WordPress-Aztec-iOS.podspec
```

Then lint the Editor library
```
bundle exec pod lib lint WordPress-Editor-iOS.podspec
```

If all is good, push it
```
bundle exec pod trunk push WordPress-Editor-iOS.podspec
```

### Step 5: Closing the milestone ###

For simplicity Aztec uses a single milestone named “Next Stable”. The purpose of this milestone is to be used to assign to it all of the regular issues that are closed and merged into develop during the regular development process.

At this point in the release process you should rename the milestone to the version you've just released.

Once renamed, you can create a new “Next Stable” milestone and assign all pending open issues to it.

At this point you’re ready to close the version milestone in GitHub.

### Step 6: Merge Master to develop ###

Following the git Flow methodology you now need to merge the master branch back to develop.

Create a new PR in GitHub that targets `develop` with the master branch.

After review, if all is ok, merge that PR and your work is done.<commit_msg>Update wording<commit_after>## Release Process ##

### Step 1: Creating a release branch ###

The branch structure in Aztec iOS is based on the [Git Flow](https://nvie.com/posts/a-successful-git-branching-model/) methodology.

These are the main branches involved in the release process:
```
trunk: Kept up to date with the latest release.
develop: Bleeding edge branch with all of the latest changes.
release/x.y.z: Version branch, which we will use during the release process.
```
The first step in the process is creating the version branch.

The version branch is what allows work to continue in develop while also having a frozen snapshot of what we’re releasing.

Using the command line, the process is pretty straightforward:

```
git checkout develop
git pull
git checkout -b release/x.y.z
git push origin -u release/x.y.z
```

Make sure to update the field `s.version` in both of these files to the `x.y.z` number
```
WordPress-Aztec-iOS.podspec
WordPress-Editor-iOS.podespec
```

Open a PR on github where you target the `trunk` branch with the `release/x.y.z` branch and call it `Release x.y.z`


### Step 2: Testing the Integration ###

Before going any further, tt's normally good practice to test the Aztec integration into [WordPress-iOS project](https://github.com/wordpress-mobile/WordPress-iOS), to make sure we won’t have to do the release process twice.

Make sure WordPress-iOS’s podfile specifies the SAME (and latest) commit number for both of these:
```
pod 'WordPress-Aztec-iOS', :git => 'https://github.com/wordpress-mobile/AztecEditor-iOS.git', :commit => '<KEY>'
pod 'WordPress-Editor-iOS', :git => 'https://github.com/wordpress-mobile/AztecEditor-iOS.git', :commit => '<KEY>'
```
The things we want to look out for are:

- That the pod can be properly installed in WPiOS.
- That WPiOS builds properly.
- That you can open a post through the App, using both the classic editor and Gutenberg.

### Step 3: Merge the branch ###

If the release PR is approved and all is working correctly in WP-iOS merge the release branch to trunk.

### Step 4: Push the POD. ###

*Automated Process*

Create a new release on Github targetting the trunk branch and name it `Release x.y.z`

Set a tag with the value `x.y.z` .  

On the description field and the content of the changelog for this version

Press the `Publish release` button

At this moment the CI automation should notice your tag and after some minutes you should get the new pod publish on CocoaPods.

If this for some reason fails chech the manual process bellow

*Manual Process*

Pushing the PODs is a bit different than in other repos due to the fact that this repo has two podspecs.

The recommended steps are:

Lint the core library
```
bundle exec pod lib lint WordPress-Aztec-iOS.podspec
```

If all is good proceed to
```
bundle exec pod trunk push WordPress-Aztec-iOS.podspec
```

Then lint the Editor library
```
bundle exec pod lib lint WordPress-Editor-iOS.podspec
```

If all is good, push it
```
bundle exec pod trunk push WordPress-Editor-iOS.podspec
```

### Step 5: Closing the milestone ###

For simplicity Aztec uses a single milestone named “Next Stable”. The purpose of this milestone is to be used to assign to it all of the regular issues that are closed and merged into develop during the regular development process.

At this point in the release process you should rename the milestone to the version you've just released.

Once renamed, you can create a new “Next Stable” milestone and assign all pending open issues to it.

At this point you’re ready to close the version milestone in GitHub.

### Step 6: Merge Trunk to develop ###

Following the git Flow methodology you now need to merge the trunk branch back to develop.

Create a new PR in GitHub that targets `develop` with the trunk branch.

After review, if all is ok, merge that PR and your work is done.
{'fraction_non_alphanumeric': 0.07589114603296282, 'fraction_numerical': 0.008176823814999361, 'mean_word_length': 4.163588390501319, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2862257', 'n_tokens_mistral': 2323, 'n_tokens_neox': 2155, 'n_words': 1146}