Skip to content

Commit

Permalink
release: release rpm (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
rootfs authored Mar 14, 2023
1 parent a8b77d0 commit 8f10288
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,27 @@ on:
description: "Release name, e.g. release-0.4"
default: release-0.4
required: true
rpm_version:
description: "rpm version, e.g. 0.4"
default: 0.4
required: true
rpm_release:
description: "rpm release, e.g. 1"
default: 1
required: true
committer:
description: "rpm committer, e.g. gh-actions"
default: "gh-actions"
required: false
changelog:
description: "rpm changelog, e.g. new release"
default: "new release"
required: false
arch:
description: "rpm arch, e.g. x86_64"
default: "x86_64"
required: false



jobs:
Expand Down Expand Up @@ -63,11 +84,12 @@ jobs:
- name: Build RPM package
id: rpm_build
env:
_VERSION_ : ${{ github.event.inputs.tag }}
_RELEASE_: ${{ github.event.inputs.release }}
_COMMITTER_: ${{ github.event.pull_request.head.sha }}
_VERSION_ : ${{ github.event.inputs.rpm_version }}
_RELEASE_: ${{ github.event.inputs.rpm_release }}
_COMMITTER_: ${{ github.event.inputs.committer }}
_TIMESTAMP_: ${{ steps.date.outputs.date }}
_CHANGELOG_: ${{ github.event.head_commit.message }}
_CHANGELOG_: ${{ github.event.inputs.changelog }}
_ARCH_: ${{ github.event.inputs.arch }}
run: make build_rpm

- if: startsWith(github.event.ref, 'refs/tags/')
Expand Down

0 comments on commit 8f10288

Please sign in to comment.