Skip to content

Commit

Permalink
Add setup-ruby action
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell committed Nov 21, 2024
1 parent 6db86f5 commit a43afb7
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/publish-to-cocoapods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@ on:
push:
tags:
- "*"
branches:
- '*'

jobs:
publish:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@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 }}
# - 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 }}

0 comments on commit a43afb7

Please sign in to comment.