Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ElonPark committed Jul 10, 2022
2 parents a76095c + 246bf5a commit dd217aa
Show file tree
Hide file tree
Showing 13 changed files with 87 additions and 795 deletions.
48 changes: 48 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name-template: '🚀 $RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'enhancement'
- 'feat'

- title: '🐛 Bug Fixes'
labels:
- 'bug'
- 'fix'

- title: '🚀 Performance Improvements'
label: 'perf'

- title: '📚 Documentation'
labels:
- 'documentation'
- 'docs'

- title: '🧰 Maintenance'
labels:
- 'chore'
- 'ci'
- 'build'
- 'test'

- title: '🗑 Reverts'
label: 'revert'

change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&'
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## What’s Changed
$CHANGES
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release
on:
push:
branches:
- master

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build:
runs-on: macOS-latest

steps:
- uses: actions/checkout@v2

- name: extract_version_info
run: echo "##[set-output name=version;]$(echo '${{ github.event.head_commit.message }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')"
id: extract_version_name

- uses: release-drafter/release-drafter@v5
with:
publish: true
tag: ${{ steps.extract_version_name.outputs.version }}

- name: Install Cocoapods
run: gem install cocoapods

- name: Deploy to Cocoapods
run: |
set -eo pipefail
pod lib lint --allow-warnings
pod trunk push --allow-warnings
env:
LIB_VERSION: ${{ steps.extract_version_name.outputs.version }}
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
2 changes: 1 addition & 1 deletion Sources/SushiBelt/SushiBeltTracker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import UIKit
public final class SushiBeltTracker {

// MARK: - Dependencies
public weak var delegate: SushiBeltTrackerDelegate?
public weak var delegate: SushiBeltTrackerDelegate?
public weak var dataSource: SushiBeltTrackerDataSource?
public weak var scrollView: UIScrollView?
private let visibleRatioCalculator: VisibleRatioCalculator
Expand Down
2 changes: 1 addition & 1 deletion Sources/SushiBelt/SushiBeltTrackerDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation
import UIKit

public protocol SushiBeltTrackerDelegate: AnyObject {
public protocol SushiBeltTrackerDelegate: AnyObject {
func willBeginTracking(_ tracker: SushiBeltTracker, item: SushiBeltTrackerItem)
func didEndTracking(_ tracker: SushiBeltTracker, item: SushiBeltTrackerItem)
}
2 changes: 1 addition & 1 deletion SushiBelt.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'SushiBelt'
s.version = '1.0.0'
s.version = ENV['LIB_VERSION'] || '1.0.0'
s.summary = 'Track visible views on the UIScrollView'

s.description = 'The SushiBelt can be used to measure exposure according to the ratio for all views on the UIScrollView.'
Expand Down
25 changes: 0 additions & 25 deletions SushiBelt.xcodeproj/SushiBeltTests_Info.plist

This file was deleted.

25 changes: 0 additions & 25 deletions SushiBelt.xcodeproj/SushiBelt_Info.plist

This file was deleted.

Loading

0 comments on commit dd217aa

Please sign in to comment.