wip [skip ci]

This commit is contained in:
David Roman 2023-06-01 04:02:14 +01:00
parent e73810fe45
commit 2548cbfdd8
No known key found for this signature in database
GPG Key ID: 7058646EEFCB70A7
1 changed files with 9 additions and 3 deletions

View File

@ -8,17 +8,23 @@ on:
jobs: jobs:
deploy: deploy:
runs-on: macos-latest runs-on: macos-latest
strategy:
fail-fast: false
matrix:
podspec:
- Introspect.podspec
- SwiftUIIntrospect.podspec
steps: steps:
- name: Git Checkout - name: Git Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 # required to be able to find Git tags fetch-depth: 0 # required to be able to find Git tags
- name: Deploy to CocoaPods Trunk - name: Deploy to CocoaPods Trunk (${{ matrix.podspec }})
run: | run: |
set -eo pipefail set -eo pipefail
export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`) export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
pod lib lint --allow-warnings pod lib lint ${{ matrix.podspec }} --allow-warnings
pod trunk push --allow-warnings pod trunk push ${{ matrix.podspec }} --allow-warnings
env: env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}