Skip to content

Commit 864f277

Browse files
committed
test workflow2
1 parent 9f80736 commit 864f277

2 files changed

Lines changed: 64 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Anima Build and Deploy action
2+
on:
3+
push:
4+
branches:
5+
- anima-v2-deploy
6+
workflow_dispatch:
7+
inputs:
8+
release_name:
9+
description: 'Version Name (e.g. v2.0.0)'
10+
required: true
11+
default: 'v2.0.0'
12+
is_prerelease:
13+
description: 'Is this a Pre-release?'
14+
type: boolean
15+
default: false
16+
17+
jobs:
18+
build:
19+
runs-on: windows-latest
20+
steps:
21+
- name: Checkout Code
22+
uses: actions/checkout@v4
23+
24+
- name: Install Qt
25+
uses: jurplel/install-qt-action@v3
26+
with:
27+
version: '6.11.0'
28+
arch: 'win64_mingw'
29+
30+
- name: Configure CMake
31+
run: cmake -B build -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release
32+
33+
- name: Build Project
34+
run: cmake --build build --config Release
35+
36+
- name: Bundle DLLs
37+
run: |
38+
windeployqt --qmldir . build/appAnima_Pro.exe
39+
40+
- name: Create ZIP
41+
uses: thedoctor0/zip-release@main
42+
with:
43+
type: 'zip'
44+
directory: 'build'
45+
filename: 'Anima-v2.zip'
46+
47+
- name: Save Private Test Build
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: Private-Testing-Build
51+
path: build/Anima-v2.zip
52+
53+
- name: Create Official Release
54+
if: github.event_name == 'workflow_dispatch'
55+
uses: softprops/action-gh-release@v1
56+
with:
57+
tag_name: ${{ github.event.inputs.release_name }}
58+
name: Anima ${{ github.event.inputs.release_name }}
59+
body_path: CHANGELOG.md
60+
prerelease: ${{ github.event.inputs.is_prerelease }}
61+
files: build/Anima-v2.zip
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
.git/
22
.qtcreator/
3-
build/
4-
.github/
3+
build/

0 commit comments

Comments
 (0)