Skip to content

Commit

Permalink
Merge pull request #39 from keynslug/fix/EMQX-13447/rerelease
Browse files Browse the repository at this point in the history
ci: enable rereleases of arbitrary tags
  • Loading branch information
keynslug authored Jan 10, 2025
2 parents 0cfba04 + 85a6c34 commit b3136a6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
inputs:
ref:
required: false
ref_name:
required: false

jobs:
mac:
Expand Down Expand Up @@ -97,7 +99,6 @@ jobs:
"
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
if: startsWith(github.ref, 'refs/tags/')
with:
name: erlang-rocksdb-nif-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.erlang.otp }}
path: |
Expand All @@ -106,7 +107,7 @@ jobs:
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
if: github.event.inputs.ref_name || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/'))
needs:
- mac
- linux
Expand All @@ -119,7 +120,8 @@ jobs:
- name: Create Release
uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87 # v2.0.5
with:
name: Erlang Rocksdb NIF ${{ github.ref_name }} Released
name: Erlang Rocksdb NIF ${{ github.event.inputs.ref_name || github.ref_name }} Released
tag_name: ${{ github.event.inputs.ref_name || github.ref_name }}
files: packages/*
draft: false
prerelease: false

0 comments on commit b3136a6

Please sign in to comment.