Skip to content

Commit c24bb8a

Browse files
authored
Merge pull request #9 from jaeilers/feature/add-release-pipeline
Feature: Add release pipeline
2 parents 2bb179a + 647c34d commit c24bb8a

6 files changed

Lines changed: 40 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- '*.*.*'
6+
7+
jobs:
8+
release:
9+
name: Run tests and push release to CocoaPods trunk
10+
runs-on: macos-13
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup
16+
uses: ./.github/actions/setup
17+
18+
- name: Run tests
19+
run: bundle exec fastlane test_all
20+
21+
- name: Push to CocoaPods trunk
22+
run: sh "${GITHUB_WORKSPACE}/scripts/ci/push_to_trunk.sh"
23+
env:
24+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.2.0] - 2023-12-03
11+
1012
### Added
1113

1214
- Added Changelog
1315
- Added CI workflow status badge
1416
- Added support for glyphInfo and markedClauseSegment
15-
- Added support for optionals, conditionals and limited availability in result builder
17+
- Added support for optionals, conditionals and limited availability in result builder
18+
- Added CocoaPods release pipeline
1619

1720
### Changed
1821

@@ -32,5 +35,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3235

3336
- Initial Release
3437

35-
[unreleased]: https://github.com/jaeilers/NSAttributedStringBuilder/compare/0.1.0...HEAD
38+
[unreleased]: https://github.com/jaeilers/NSAttributedStringBuilder/compare/0.2.0...HEAD
39+
[0.2.0]: https://github.com/jaeilers/NSAttributedStringBuilder/releases/tag/0.2.0
3640
[0.1.0]: https://github.com/jaeilers/NSAttributedStringBuilder/releases/tag/0.1.0

NSAttributedStringBuilder-jaeilers.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Pod::Spec.new do |spec|
22

33
spec.name = "NSAttributedStringBuilder-jaeilers"
44
spec.module_name = "NSAttributedStringBuilder"
5-
spec.version = "0.1.0"
5+
spec.version = "0.2.0"
66
spec.summary = "An easy to use NSAttributedString builder with extended modifier support (bold, italic, image, custom spacings etc.)"
77

88
spec.description = <<-DESC

NSAttributedStringBuilder.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@
555555
"@executable_path/../Frameworks",
556556
"@loader_path/Frameworks",
557557
);
558-
MARKETING_VERSION = 0.1.0;
558+
MARKETING_VERSION = 0.2.0;
559559
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
560560
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20";
561561
PRODUCT_BUNDLE_IDENTIFIER = de.je.NSAttributedStringBuilder;
@@ -593,7 +593,7 @@
593593
"@executable_path/../Frameworks",
594594
"@loader_path/Frameworks",
595595
);
596-
MARKETING_VERSION = 0.1.0;
596+
MARKETING_VERSION = 0.2.0;
597597
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
598598
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20";
599599
PRODUCT_BUNDLE_IDENTIFIER = de.je.NSAttributedStringBuilder;

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You can add more functionality by extending `AttributedStringBuilding`. All exte
2121
Add the following to your `Podfile` to integrate `NSAttributedStringBuilder` into your project:
2222

2323
```Ruby
24-
pod 'NSAttributedStringBuilder-jaeilers', :git => 'https://github.com/jaeilers/NSAttributedStringBuilder.git', :tag => '0.1.0'
24+
pod 'NSAttributedStringBuilder-jaeilers', '~> 0.2.0'
2525
```
2626

2727
### Swift Package Manager
@@ -32,7 +32,7 @@ For projects with a separate `Package.swift`, add the dependency to your package
3232

3333
```Swift
3434
dependencies: [
35-
.package(url: "https://github.com/jaeilers/NSAttributedStringBuilder", .upToNextMajor(from: "0.1.0"))
35+
.package(url: "https://github.com/jaeilers/NSAttributedStringBuilder", .upToNextMajor(from: "0.2.0"))
3636
]
3737
```
3838

scripts/ci/push_to_trunk.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
bundle exec pod trunk push --allow-warnings

0 commit comments

Comments
 (0)