Skip to content

Commit

Permalink
Merge pull request #37 from storyprotocol/feat/refactor_reusable_crea…
Browse files Browse the repository at this point in the history
…te_release_2

[feat] refactor the package publication workflow - 2
  • Loading branch information
AndyBoWu authored Apr 25, 2024
2 parents 2bbb74a + 06830a8 commit 104a0bf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/reusable-create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ permissions:

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

- name: Tag and Push
run: |
VERSION=${{ github.event.inputs.version_to_publish }}
VERSION=${{ inputs.version_to_publish }}
git config --global user.name 'GitHub Actions'
git config --global user.email 'actions@github.com'
git tag -a v$VERSION -m "Release v$VERSION"
Expand All @@ -36,6 +36,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
uses: mikepenz/action-gh-release@v1 #softprops/action-gh-release
uses: mikepenz/action-gh-release@v0.2.0-a03 #softprops/action-gh-release
with:
tag_name: v${{ inputs.version_to_publish }}
body: ${{ steps.build_changelog.outputs.changelog }}

0 comments on commit 104a0bf

Please sign in to comment.