Skip to content

!Refactoring (#74)

!Refactoring (#74) #28

Workflow file for this run

name: Build Master Branch
on:
workflow_call:
secrets:
token:
required: true
push:
branches:
- "master"
jobs:
build:
name: Enviroment ${{ matrix.swift }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-14]
swift: ["5.9"]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Cache Swift dependencies
uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Set Swift Version
uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
deploytag:
name: Setup pod
needs: build
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
os:
- macos-14
swift:
- "5.9"
steps:
- name: Checkout Repository
uses: actions/checkout@v4
# Cache cocoadpod
- name: Cache Cocoapod
uses: actions/cache@v4
with:
path: ~/.cocoapods
key: ${{ runner.os }}-cocoapods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-cocoapods-
- name: Install Cocoapod
run: gem install cocoapods
- name: Compress Push To Cocoapods
continue-on-error: true
run: |
set -eo pipefail
pod lib lint --allow-warnings
pod trunk push --allow-warnings
exit 0
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPOD_TOKEN }}