From a264503511f42df761945d4a188ff6e0e493ec2b Mon Sep 17 00:00:00 2001 From: Pierre-Marc Airoldi Date: Thu, 15 Feb 2024 23:25:21 -0500 Subject: [PATCH] update workflows --- .github/workflows/{swift.yml => build.yml} | 4 ++-- .github/workflows/release.yml | 24 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) rename .github/workflows/{swift.yml => build.yml} (98%) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/build.yml similarity index 98% rename from .github/workflows/swift.yml rename to .github/workflows/build.yml index 9ed2deeacb..658a16d1e2 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Swift +name: Build on: workflow_dispatch: @@ -77,5 +77,5 @@ jobs: DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer steps: - uses: actions/checkout@v3 - - name: Carthage Test + - name: Cocoapdos Test run: pod lib lint diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..f95d3304f1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +name: Release + +on: + push: + tags: + - "*" + +jobs: + build: + runs-on: macos-12 + + steps: + - uses: actions/checkout@v1 + + - name: Install Cocoapods + run: gem install cocoapods + + - name: Deploy to Cocoapods + run: | + set -eo pipefail + pod lib lint --allow-warnings + pod trunk push --allow-warnings + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}