diff --git a/.github/workflows/pod_lib_lint.yml b/.github/workflows/pod_lib_lint.yml new file mode 100644 index 0000000..25bccf7 --- /dev/null +++ b/.github/workflows/pod_lib_lint.yml @@ -0,0 +1,14 @@ +name: Pod lint +on: [workflow_dispatch] + +jobs: + pod_lib_lint: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v2 + + - env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} + run: | + set -eo pipefail + pod lib lint --allow-warnings diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7766202..928f12e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,47 +1,38 @@ 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 }} - - 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: bump_pod_version - 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 + 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: Deploy to Cocoapods + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} + run: | + set -eo pipefail + pod lib lint --allow-warnings + pod trunk push --allow-warnings diff --git a/SkeletonView.podspec b/SkeletonView.podspec index 6dcca2b..211c1d3 100644 --- a/SkeletonView.podspec +++ b/SkeletonView.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "SkeletonView" - s.version = "1.12.1" + s.version = "1.13.0" 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. diff --git a/fastlane/README.md b/fastlane/README.md new file mode 100644 index 0000000..4e202a7 --- /dev/null +++ b/fastlane/README.md @@ -0,0 +1,33 @@ +fastlane documentation +================ +# Installation + +Make sure you have the latest version of the Xcode command line tools installed: + +``` +xcode-select --install +``` + +Install _fastlane_ using +``` +[sudo] gem install fastlane -NV +``` +or alternatively using `brew install fastlane` + +# Available Actions +### bump_version +``` +fastlane bump_version +``` + +### release_current +``` +fastlane release_current +``` + + +---- + +This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run. +More information about fastlane can be found on [fastlane.tools](https://fastlane.tools). +The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).