Compare commits

..

4 Commits

Author SHA1 Message Date
Juanpe Catalán 32ab6d3852 unify jobs 2021-02-15 15:19:09 +01:00
Josh Brunner 7ce5e0623a Fixed a deprecation warning where the AssociatedObjects protocol was inheriting from class instead of AnyObject per Xcode's suggestion (#376) 2021-02-08 23:06:32 +01:00
Juanpe Catalán f0c7d2d6a0 modify release workflow steps 2021-02-08 10:11:52 +01:00
Juanpe Catalán 26476fd3ed bump version 1.12.1 2021-02-08 10:07:11 +01:00
3 changed files with 34 additions and 52 deletions
+32 -50
View File
@@ -1,53 +1,35 @@
name: Release
on:
workflow_dispatch:
inputs:
release_version:
description: "Release version"
required: true
default: ""
on: [workflow_dispatch]
jobs:
bump_pod_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup fastlane
run: brew install fastlane
- name: bump version
run: fastlane bump_version next_version:${{ github.event.inputs.release_version }}
commit_changes:
needs: bump_pod_version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: 'main'
commit_message: 'Bump version ${{ github.event.inputs.release_version }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
create_release:
runs-on: ubuntu-latest
needs: commit_changes
steps:
- uses: actions/checkout@v2
- name: publish release
uses: release-drafter/release-drafter@v5
with:
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pod_trunk_push:
runs-on: macOS-latest
needs: create_release
steps:
- uses: actions/checkout@v2
- name: publish pod
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
run: pod trunk push SkeletonView.podspec --allow-warnings --verbose
release_version:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: setup fastlane
run: brew install fastlane
- name: publish release
id: publish_release
uses: release-drafter/release-drafter@v5
with:
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: update podspec file
run: fastlane bump_version next_version:${{ steps.publish_release.outputs.tag_name }}
- name: commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: 'main'
commit_message: 'Bump version ${{ steps.publish_release.outputs.tag_name }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: push pod
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
run: pod trunk push SkeletonView.podspec --allow-warnings --verbose
+1 -1
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SkeletonView"
s.version = "1.12.0"
s.version = "1.12.1"
s.summary = "An elegant way to show users that something is happening and also prepare them to which contents he is waiting"
s.description = <<-DESC
Today almost all apps have async processes, as API requests, long runing processes, etc. And while the processes are working, usually developers place a loading view to show users that something is going on.
+1 -1
View File
@@ -17,7 +17,7 @@ enum AssociationPolicy: UInt {
}
}
protocol AssociatedObjects: class { }
protocol AssociatedObjects: AnyObject { }
// transparent wrappers
extension AssociatedObjects {