Add release CI.

This commit is contained in:
Shaun Reed 2025-03-14 16:18:24 -04:00
parent b252922b0a
commit de9ef4c948
2 changed files with 42 additions and 1 deletions

View File

@ -1,10 +1,16 @@
name: All Builds
name: Build
on:
push:
branches:
- '*'
# Runs on tag so the release workflow can use its artifact.
tags:
- "v*"
pull_request:
workflow_dispatch:
env:
QT_VERSION: 6.6.0

35
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: Release
on:
workflow_run:
workflows: ["Build"]
types:
- completed
jobs:
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download Installer Artifact
uses: actions/download-artifact@v4
with:
name: Qtk Packages
path: |
build/packages/*
install/*
- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.workflow_run.head_branch }}
name: Qtk ${{ github.event.workflow_run.head_branch }}
draft: true
prerelease: false
generate_release_notes: true
files: |
build/packages/*
install/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}