Skip to content

Commit

Permalink
ci: 새로운 버전이 퍼블리쉬 될때 코코아팟에 배포 되도록 수정
Browse files Browse the repository at this point in the history
- 버전은 태그에서 가져오도록 수정함
  • Loading branch information
ElonPark committed May 23, 2022
1 parent 5d61876 commit 13dfcdf
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Release
on:
push:
branches:
- master

release:
types: [published]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -15,14 +13,9 @@ jobs:
- 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}')"
run: echo "::set-output name=version::$(git describe --tags $(git rev-list --tags --max-count=1))"
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

Expand Down

0 comments on commit 13dfcdf

Please sign in to comment.