From 0a5b28e27f20f371e45199c7aa6a725a917b7c27 Mon Sep 17 00:00:00 2001 From: Wei <41205mw@gmail.com> Date: Fri, 20 Sep 2024 18:35:06 +0800 Subject: [PATCH] Create deploy-cocoapods --- .github/workflows/deploy-cocoapods | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/deploy-cocoapods diff --git a/.github/workflows/deploy-cocoapods b/.github/workflows/deploy-cocoapods new file mode 100644 index 0000000..dfde799 --- /dev/null +++ b/.github/workflows/deploy-cocoapods @@ -0,0 +1,23 @@ +name: Deploy Cocoapods + +on: + push: + branches: + - main + paths: + - scripts/ZMarkupParser.podspec + +jobs: + + deploy: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v4 + - run: gem install cocoapods + - env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} + run: | + set -eo pipefail + pod trunk push --allow-warnings + +