Skip to content

Commit

Permalink
create release with change log
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahroz16 committed May 26, 2024
1 parent b475c56 commit 4289323
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/tag-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required due to the way Git works, without it this action won't be able to find any or the correct tags

- name: Setup Ruby
uses: ruby/setup-ruby@v1
Expand All @@ -25,12 +27,23 @@ jobs:
- name: Install CocoaPods
run: gem install cocoapods

- name: Create and push tag
uses: rickstaa/action-create-tag@v1
id: tag_create
- name: Get current version
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"

- name: Create GitHub Release
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ github.event.inputs.tag }}

tag_name: ${{ github.event.inputs.tag }}
release_name: Release ${{ github.event.inputs.tag }}
draft: false
prerelease: false
body: |
Changes since [${{ steps.previoustag.outputs.tag }}](https://github.com/${{ github.repository }}/compare/${{ steps.previoustag.outputs.tag }}...${{ github.event.inputs.tag }})
- name: Manually update version and tag in podspec
run: |
sed -i.bak 's/\(version = \)"[^"]*"/\1"${{ github.event.inputs.tag }}"/' AnalyticsSwiftCIO.podspec
Expand Down

0 comments on commit 4289323

Please sign in to comment.