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 4971495 commit 3ba81aa
Show file tree
Hide file tree
Showing 46 changed files with 45 additions and 874 deletions.
20 changes: 1 addition & 19 deletions bin/stubs/.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
19 changes: 0 additions & 19 deletions src/amqp-job/.github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +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
20 changes: 1 addition & 19 deletions src/cache/.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
20 changes: 1 addition & 19 deletions src/command-signals/.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
20 changes: 1 addition & 19 deletions src/command-validation/.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
20 changes: 1 addition & 19 deletions src/compoships/.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
20 changes: 1 addition & 19 deletions src/confd/.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
20 changes: 1 addition & 19 deletions src/config-consul/.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
20 changes: 1 addition & 19 deletions src/console-spinner/.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
20 changes: 1 addition & 19 deletions src/di-plus/.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
20 changes: 1 addition & 19 deletions src/elasticsearch/.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
20 changes: 1 addition & 19 deletions src/encryption/.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
20 changes: 1 addition & 19 deletions src/exception-event/.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
20 changes: 1 addition & 19 deletions src/facade/.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
20 changes: 1 addition & 19 deletions src/fast-paginate/.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
Loading

0 comments on commit 3ba81aa

Please sign in to comment.