From 20200c2062b3bcf0f2a77eb1b5ecb6eda4d46008 Mon Sep 17 00:00:00 2001 From: Elon Park Date: Mon, 14 Mar 2022 00:11:25 +0900 Subject: [PATCH 1/3] chore: remove deploy_to_cocoapods.yml --- .github/workflows/deploy_to_cocoapods.yml | 26 ----------------------- 1 file changed, 26 deletions(-) delete mode 100644 .github/workflows/deploy_to_cocoapods.yml diff --git a/.github/workflows/deploy_to_cocoapods.yml b/.github/workflows/deploy_to_cocoapods.yml deleted file mode 100644 index cdcee24..0000000 --- a/.github/workflows/deploy_to_cocoapods.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: deploy_to_cocoapods - -on: - push: - tags: - - '*' - -jobs: - build: - - runs-on: macOS-latest - - steps: - - uses: actions/checkout@v1 - - - 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 }} \ No newline at end of file From fcb9985d758c4d15f9bbdadabfd3da8d126bd21c Mon Sep 17 00:00:00 2001 From: Elon Park Date: Mon, 14 Mar 2022 00:27:59 +0900 Subject: [PATCH 2/3] ci: add release-drafter.yml --- .github/release-drafter.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..bcae0ad --- /dev/null +++ b/.github/release-drafter.yml @@ -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 \ No newline at end of file From 327255ecde5017e0fc5ed80c55a3a15edcaf3496 Mon Sep 17 00:00:00 2001 From: Elon Park Date: Mon, 14 Mar 2022 00:28:12 +0900 Subject: [PATCH 3/3] ci: update release.yml --- .github/workflows/release.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7105c77..6144cb5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} \ No newline at end of file + + - 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 }} \ No newline at end of file