From 1ed355de6264f81c04cb704f035383dd90b9363d Mon Sep 17 00:00:00 2001 From: Maciej Pijanowski Date: Fri, 13 Oct 2023 11:38:36 +0200 Subject: [PATCH] .github/workflows/build.yml: create release on tag Signed-off-by: Maciej Pijanowski --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index db8dc2f21a..9303e45f19 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,8 @@ on: push: branches: - dasharo + tags: + - 'dasharo_qemu_v*' pull_request: branches: - dasharo @@ -59,3 +61,13 @@ jobs: Build/OvmfX64/RELEASE_GCC5/FV/OVMF_VARS.fd Build/OvmfX64/DEBUG_GCC5/FV/OVMF_CODE.fd Build/OvmfX64/DEBUG_GCC5/FV/OVMF_VARS.fd + + - name: Create GitHub Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.event.ref, 'refs/tags/dasharo_qemu') + with: + files: | + Build/OvmfX64/RELEASE_GCC5/FV/OVMF_CODE.fd + Build/OvmfX64/RELEASE_GCC5/FV/OVMF_VARS.fd + Build/OvmfX64/DEBUG_GCC5/FV/OVMF_CODE.fd + Build/OvmfX64/DEBUG_GCC5/FV/OVMF_VARS.fd