Skip to content

Commit

Permalink
Merge pull request #32 from storyprotocol/feat/add_build_changelog_cr…
Browse files Browse the repository at this point in the history
…eate_release_workflow

[feat] add reusble workflow to create release in github
  • Loading branch information
AndyBoWu authored Apr 24, 2024
2 parents 8046f52 + 360938f commit 039a506
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/reusable-create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Reusable workflow to create release in GitHub

on:
workflow_call:

permissions:
contents: write

jobs:
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2

- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@32e3c96f29a6532607f638797455e9e98cfc703d #v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
uses: mikepenz/action-gh-release@v0.2.0-a03 #softprops/action-gh-release
with:
body: ${{steps.github_release.outputs.changelog}}

0 comments on commit 039a506

Please sign in to comment.