From 8cdfe328805cca7b1683798e084a71e3df023158 Mon Sep 17 00:00:00 2001 From: Hiroshi Kimura Date: Fri, 15 Jan 2021 01:16:23 +0900 Subject: [PATCH] Add workflows that enable to create release automatically in CocoaPods #107 --- .github/workflows/Checks.yml | 15 +++++++++++++++ .github/workflows/Release.yml | 19 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/Checks.yml create mode 100644 .github/workflows/Release.yml diff --git a/.github/workflows/Checks.yml b/.github/workflows/Checks.yml new file mode 100644 index 0000000..61758d1 --- /dev/null +++ b/.github/workflows/Checks.yml @@ -0,0 +1,15 @@ +name: Checks + +on: [push] + +jobs: + lint: + runs-on: macos-latest + + steps: + - uses: maxim-lobanov/setup-xcode@v1.1 + with: + xcode-version: "12.3" + - uses: actions/checkout@v2 + - name: Lint Cocoapods + run: pod lib lint --allow-warnings diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml new file mode 100644 index 0000000..9ce1ced --- /dev/null +++ b/.github/workflows/Release.yml @@ -0,0 +1,19 @@ +name: Release + +on: + push: + tags: + - "*" + +jobs: + pod-trunk-push: + runs-on: macOS-latest + steps: + - uses: maxim-lobanov/setup-xcode@v1.1 + with: + xcode-version: "12.3" + - uses: actions/checkout@v2 + - name: Deploy + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} + run: pod trunk push EasyPeasy.podspec --allow-warnings