Skip to content

Commit

Permalink
Improve release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdijia committed Sep 25, 2024
1 parent cb9d0c1 commit ab0efbf
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,4 @@ on:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get the version
id: get_version
if: startsWith(github.ref, 'refs/tags/')
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}

- name: Release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref }}
name: Release ${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false
generate_release_notes: true
uses: friendsofhyperf/.github/.github/workflows/release.yaml@main

0 comments on commit ab0efbf

Please sign in to comment.