Files
GitAddonsManager/.github/workflows/release.yml
T
thezephyrsong 683566ab73 Update Qt install workflow and About tab links
Switched to aqtinstall for Qt setup in release workflow and removed unused CI steps. Updated About tab in main.qml to reference GitHub repo and adjusted author/website labels. Rebuilt resources and updated logs to reflect these changes.
2026-06-17 01:37:41 +10:00

50 lines
1.3 KiB
YAML

name: Build and Release
on:
push:
tags:
- 'v*' # Trigger this workflow whenever you push a tag starting with 'v' (like v1.0.0)
jobs:
build-and-release:
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up MSVC (Visual Studio Compiler)
uses: ilammy/msvc-dev-cmd@v1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Qt via aqtinstall
run: |
python -m pip install --upgrade pip
pip install aqtinstall
python -m aqt install-qt windows desktop 6.8.3 win64_msvc2019 --outputdir ${{ github.workspace }}/Qt
echo "${{ github.workspace }}/Qt/6.8.3/msvc2019_64/bin" >> $GITHUB_PATH
- name: Configure CMake
run: |
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release
- name: Build Project
run: |
cmake --build build --config Release
- name: Run CPack (Generate Installer)
working-directory: build
run: |
cpack -C Release
- name: Create GitHub Release and Upload Artifacts
uses: softprops/action-gh-release@v2
with:
files: build/GitAddonsManager_Setup.exe # Path to where CPack spits out the installer
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}