From 32ab6d3852e91312dcbfc3f3a749cfc691da75fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanpe=20Catal=C3=A1n?= Date: Mon, 15 Feb 2021 15:19:09 +0100 Subject: [PATCH 1/6] unify jobs --- .github/workflows/release.yml | 76 +++++++++++++++-------------------- 1 file changed, 32 insertions(+), 44 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7766202..fcba8f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,47 +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 }} - - 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 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 From 1676f8720a2c88fe94852e84ae668e9620d2ecea Mon Sep 17 00:00:00 2001 From: Juanpe Date: Mon, 15 Feb 2021 14:23:42 +0000 Subject: [PATCH 2/6] Bump version 1.13.0 --- SkeletonView.podspec | 2 +- fastlane/README.md | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/SkeletonView.podspec b/SkeletonView.podspec index 0f9b6e9..804c16c 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 index aa16f83..4e202a7 100644 --- a/fastlane/README.md +++ b/fastlane/README.md @@ -15,6 +15,11 @@ Install _fastlane_ using or alternatively using `brew install fastlane` # Available Actions +### bump_version +``` +fastlane bump_version +``` + ### release_current ``` fastlane release_current From 450cecbd9c6a3d57eda73b2a586dcb93c50b94e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanpe=20Catal=C3=A1n?= Date: Mon, 15 Feb 2021 15:33:44 +0100 Subject: [PATCH 3/6] update release workflow --- .github/workflows/release.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fcba8f5..b58cb5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,10 +7,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: setup fastlane + - name: Setup fastlane run: brew install fastlane - - name: publish release + - name: Publish release id: publish_release uses: release-drafter/release-drafter@v5 with: @@ -18,10 +18,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: update podspec file + - name: Update podspec run: fastlane bump_version next_version:${{ steps.publish_release.outputs.tag_name }} - - name: commit changes + - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4 with: branch: 'main' @@ -29,7 +29,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: push pod + - name: Deploy to Cocoapods env: COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} - run: pod trunk push SkeletonView.podspec --allow-warnings --verbose + run: | + set -eo pipefail + pod lib lint SkeletonView.podspec --allow-warnings + pod trunk push SkeletonView.podspec --allow-warnings From 83e1600a73835340acb108ebfed8199e5eb2a707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanpe=20Catal=C3=A1n?= Date: Mon, 15 Feb 2021 15:34:26 +0100 Subject: [PATCH 4/6] remove useless code from release workflow --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b58cb5b..928f12e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,5 +34,5 @@ jobs: COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} run: | set -eo pipefail - pod lib lint SkeletonView.podspec --allow-warnings - pod trunk push SkeletonView.podspec --allow-warnings + pod lib lint --allow-warnings + pod trunk push --allow-warnings From 29f7d8fd6adf0296e2bf96ddb90c55afde05d775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanpe=20Catal=C3=A1n?= Date: Mon, 15 Feb 2021 15:39:32 +0100 Subject: [PATCH 5/6] create pod lib lint workflow --- .github/workflows/pod_lib_lint.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/pod_lib_lint.yml diff --git a/.github/workflows/pod_lib_lint.yml b/.github/workflows/pod_lib_lint.yml new file mode 100644 index 0000000..e656720 --- /dev/null +++ b/.github/workflows/pod_lib_lint.yml @@ -0,0 +1,15 @@ +name: Pod lint +on: [workflow_dispatch] + +jobs: + release_version: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v2 + + - name: Pod lib lint + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} + run: | + set -eo pipefail + pod lib lint --allow-warnings From f3baeedc14edf349c168fa5eb573ddc354a4dbc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanpe=20Catal=C3=A1n?= Date: Mon, 15 Feb 2021 15:44:10 +0100 Subject: [PATCH 6/6] Update pod_lib_lint.yml --- .github/workflows/pod_lib_lint.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pod_lib_lint.yml b/.github/workflows/pod_lib_lint.yml index e656720..25bccf7 100644 --- a/.github/workflows/pod_lib_lint.yml +++ b/.github/workflows/pod_lib_lint.yml @@ -2,13 +2,12 @@ name: Pod lint on: [workflow_dispatch] jobs: - release_version: + pod_lib_lint: runs-on: macOS-latest steps: - uses: actions/checkout@v2 - - name: Pod lib lint - env: + - env: COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} run: | set -eo pipefail