Skip to content

Commit

Permalink
Merge pull request #8 from ElonPark/feature/fix-release-action
Browse files Browse the repository at this point in the history
ci: update release action
  • Loading branch information
ElonPark authored Mar 13, 2022
2 parents 1e822fa + 327255e commit ff0be9c
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 31 deletions.
42 changes: 42 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
label: 'feat'

- title: '🐛 Bug Fixes'
label: 'fix'

- title: '🚀 Performance Improvements'
label: 'perf'

- title: '📚 Documentation'
label: 'docs'

- title: '🧰 Maintenance'
labels:
- 'chore'
- 'ci'
- 'build'
- 'test'

- title: '🗑 Reverts'
label: 'revert'

change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&'
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## What’s Changed
$CHANGES
26 changes: 0 additions & 26 deletions .github/workflows/deploy_to_cocoapods.yml

This file was deleted.

21 changes: 16 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,31 @@ env:

jobs:
build:
runs-on: ubuntu-latest
runs-on: macOS-latest

steps:
- uses: actions/checkout@v2

- uses: release-drafter/release-drafter@v5

- 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: johnyherangi/create-release-notes@main
id: create-release-notes

- name: Create Release
uses: actions/create-release@v1
with:
tag_name: ${{ steps.extract_version_name.outputs.version }}
release_name: ${{ steps.extract_version_name.outputs.version }}
body: ${{ steps.create-release-notes.outputs.release-notes }}

- name: Install Cocoapods
run: gem install cocoapods

- name: Deploy to Cocoapods
run: |
set -eo pipefail
export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
pod lib lint --allow-warnings
pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

0 comments on commit ff0be9c

Please sign in to comment.