Tag/Version Builds #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tag/Version Builds | |
on: | |
repository_dispatch: | |
types: [ releases_repo_build ] | |
workflow_dispatch: | |
inputs: | |
repo_checkout: | |
type: string | |
description: The GitHub Repository to checkout | |
default: hyperion-project | |
required: false | |
head_sha: | |
type: string | |
default: master | |
description: The branch, tag or SHA to checkout | |
required: false | |
jobs: | |
# Build DEB Packages for APT Repository | |
deb_build: | |
name: 👷 Build DEB Packages | |
uses: ./.github/workflows/build_deb.yml | |
secrets: inherit | |
with: | |
repo_checkout: ${{ inputs.repo_checkout }} | |
head_sha: ${{ github.event.client_payload.head_sha || inputs.head_sha }} | |
upload: true | |
# Build RPM Packages for DNF Repository | |
rpm_build: | |
name: 👷 Build RPM Packages | |
uses: ./.github/workflows/build_rpm.yml | |
secrets: inherit | |
with: | |
repo_checkout: ${{ inputs.repo_checkout }} | |
head_sha: ${{ github.event.client_payload.head_sha || inputs.head_sha }} | |
upload: true | |
# Publish RPM Packages to DNF Repository | |
publish_packages: | |
name: 🚀 Publish Packages | |
needs: [ deb_build, rpm_build ] | |
uses: ./.github/workflows/publish_deb_rpm.yml | |
secrets: inherit | |
with: | |
publish: true |