Skip to content

Commit

Permalink
Merge pull request #16 from ElonPark/feature/refactor-autorelease
Browse files Browse the repository at this point in the history
ci: 릴리즈노트 드래프트 생성 및 코코아 팟 배포 방식 수정
  • Loading branch information
ElonPark authored May 23, 2022
2 parents 7bb25da + ebed111 commit 89cf902
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release-drafter
on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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 89cf902

Please sign in to comment.