Skip to content

release/1.0.6

release/1.0.6 #6

Workflow file for this run

name: Release
on:
push:
branches:
- master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: macos-14
steps:
- uses: actions/checkout@v2
- name: extract_version_info
run: echo "##[set-output name=version;]$(echo '${{ github.event.head_commit.message }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')"
id: extract_version_name
- uses: release-drafter/release-drafter@v5
with:
publish: true
tag: ${{ steps.extract_version_name.outputs.version }}
- 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:
LIB_VERSION: ${{ steps.extract_version_name.outputs.version }}
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}