diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 957684f..4f823a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,7 +74,7 @@ jobs: run: swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "${PLATFORM_TARGET}" cocoapods: - name: CocoaPods verification + name: CocoaPods Verification runs-on: macOS-10.15 steps: - name: git checkout @@ -103,7 +103,7 @@ jobs: run: bundle exec pod lib lint carthage: - name: Carthage verification + name: Carthage Verification runs-on: macos-10.15 steps: - name: git checkout @@ -111,3 +111,55 @@ jobs: - name: carthage build run: ./script/carthage.sh build --cache-builds --no-skip-current + + release-github: + name: GitHub Release + runs-on: macOS-10.15 + needs: [build-test, swiftpm, cocoapods, carthage] + if: startsWith(github.ref, 'refs/tags/') + steps: + - name: git checkout + uses: actions/checkout@v2 + + - name: create release + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + body: | + # Changes + + - + + release-cocoapods: + name: CocoaPods Release + runs-on: macOS-10.15 + needs: [build-test, swiftpm, cocoapods, carthage] + if: startsWith(github.ref, 'refs/tags/') + steps: + - name: git checkout + uses: actions/checkout@v2 + + - name: ruby versions + run: | + ruby --version + gem --version + bundler --version + + - name: cache gems + uses: actions/cache@v2 + with: + path: vendor/bundle + key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: ${{ runner.os }}-gem- + + - name: bundle install + run: | + gem install bundler --no-document + bundle config path vendor/bundle + bundle install --jobs 4 --retry 3 + + - name: pod trunk push + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} + run: pod trunk push --allow-warnings diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 1d5f106..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Release - -on: - workflow_run: - workflows: - - CI - types: - - completed - -jobs: - deploy-github: - name: Deploy Github - runs-on: macOS-10.15 - if: ${{ startsWith(github.ref, 'refs/tags/') && github.event.workflow_run.conclusion == 'success' }} - steps: - - name: git checkout - uses: actions/checkout@v2 - - - name: create release - uses: softprops/action-gh-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - body: | - # Changes - - - - - deploy-cocoapods: - name: Deploy CocoaPods - runs-on: macOS-10.15 - if: ${{ startsWith(github.ref, 'refs/tags/') && github.event.workflow_run.conclusion == 'success' }} - steps: - - name: git checkout - uses: actions/checkout@v2 - - - name: ruby versions - run: | - ruby --version - gem --version - bundler --version - - - name: cache gems - uses: actions/cache@v2 - with: - path: vendor/bundle - key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: ${{ runner.os }}-gem- - - - name: bundle install - run: | - gem install bundler --no-document - bundle config path vendor/bundle - bundle install --jobs 4 --retry 3 - - - name: pod trunk push - env: - COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} - run: pod trunk push --allow-warnings -