Skip to content

Commit

Permalink
Merge pull request #9 from jaeilers/feature/add-release-pipeline
Browse files Browse the repository at this point in the history
Feature: Add release pipeline
  • Loading branch information
jaeilers authored Dec 3, 2023
2 parents 2bb179a + 647c34d commit c24bb8a
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 7 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release
on:
push:
tags:
- '*.*.*'

jobs:
release:
name: Run tests and push release to CocoaPods trunk
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup

- name: Run tests
run: bundle exec fastlane test_all

- name: Push to CocoaPods trunk
run: sh "${GITHUB_WORKSPACE}/scripts/ci/push_to_trunk.sh"
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.0] - 2023-12-03

### Added

- Added Changelog
- Added CI workflow status badge
- Added support for glyphInfo and markedClauseSegment
- Added support for optionals, conditionals and limited availability in result builder
- Added support for optionals, conditionals and limited availability in result builder
- Added CocoaPods release pipeline

### Changed

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

- Initial Release

[unreleased]: https://github.com/jaeilers/NSAttributedStringBuilder/compare/0.1.0...HEAD
[unreleased]: https://github.com/jaeilers/NSAttributedStringBuilder/compare/0.2.0...HEAD
[0.2.0]: https://github.com/jaeilers/NSAttributedStringBuilder/releases/tag/0.2.0
[0.1.0]: https://github.com/jaeilers/NSAttributedStringBuilder/releases/tag/0.1.0
2 changes: 1 addition & 1 deletion NSAttributedStringBuilder-jaeilers.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Pod::Spec.new do |spec|

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

spec.description = <<-DESC
Expand Down
4 changes: 2 additions & 2 deletions NSAttributedStringBuilder.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@
"@executable_path/../Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.1.0;
MARKETING_VERSION = 0.2.0;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20";
PRODUCT_BUNDLE_IDENTIFIER = de.je.NSAttributedStringBuilder;
Expand Down Expand Up @@ -593,7 +593,7 @@
"@executable_path/../Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.1.0;
MARKETING_VERSION = 0.2.0;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20";
PRODUCT_BUNDLE_IDENTIFIER = de.je.NSAttributedStringBuilder;
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ You can add more functionality by extending `AttributedStringBuilding`. All exte
Add the following to your `Podfile` to integrate `NSAttributedStringBuilder` into your project:

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

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

```Swift
dependencies: [
.package(url: "https://github.com/jaeilers/NSAttributedStringBuilder", .upToNextMajor(from: "0.1.0"))
.package(url: "https://github.com/jaeilers/NSAttributedStringBuilder", .upToNextMajor(from: "0.2.0"))
]
```

Expand Down
5 changes: 5 additions & 0 deletions scripts/ci/push_to_trunk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -e

bundle exec pod trunk push --allow-warnings

0 comments on commit c24bb8a

Please sign in to comment.