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 }}