Skip to content

Popularity Primitives Update #8

Popularity Primitives Update

Popularity Primitives Update #8

Workflow file for this run

name: Publish Package
on:
release:
types:
- created
workflow_dispatch:
inputs:
packagePrefix:
required: true
default: 'SNAPSHOT'
description: "Packages require a package version, Keep SNAPSHOT for snapshot upload. Replace SNAPSHOT for a staging deploy."
jobs:
build:
runs-on: macos-latest
environment: apitesting
steps:
- uses: actions/checkout@v4
- name: Install Cocoapods
run: gem install cocoapods
- if: github.event.release.tag_name == ''
name: Deploy to Cocoapods Custom
run: |
set -eo pipefail
pod lib lint --allow-warnings
pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: "${{ secrets.TRUNK_TOKEN }}"
LIB_VERSION: "${{ github.event.inputs.packagePrefix }}"
- if: github.event.inputs.packagePrefix == ''
name: Deploy to Cocoapods Release
run: |
set -eo pipefail
pod lib lint --allow-warnings
pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: "${{ secrets.TRUNK_TOKEN }}"
LIB_VERSION: "${{ github.event.release.tag_name }}"