Skip to content

Add missing checkout in cd action #2

Add missing checkout in cd action

Add missing checkout in cd action #2

Workflow file for this run

name: cd
on:
push:
tags:
- "*"
jobs:
validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate tag is valid
run: |
echo "${{ github.ref_name }}" | grep -P '^[0-9]+\.[0-9]+\.[0-9]+'
- name: Validate tag matches podspec version
run: |
cat SpruceIDWalletSdk.podspec | grep -P "${{ github.ref_name }}"
main:
runs-on: macos-latest
needs: validation
steps:
- uses: actions/checkout@v4
- name: Publish to CocoaPod register
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
run: |
pod trunk push SpruceIDWalletSdk.podspec --synchronous