@@ -3,20 +3,11 @@ name: ARES Launcher Release Pipeline
33on :
44 release :
55 types : [released]
6- workflow_dispatch :
7- inputs :
8- test_version :
9- description : ' Test Version (e.g. v1.0.0-test)'
10- required : true
11- default : ' v0.0.0-test'
12- push :
13- branches :
14- - ' **'
156
167env :
178 PROJECT_FILE : ' ARESLauncher.Desktop/ARESLauncher.Desktop.csproj'
189 OUTPUT_PATH : ' publish'
19- ARES_OS_REPO : ' AFRL-ARES/ARES'
10+ ARES_OS_REPO : ' AFRL-ARES/ARES'
2011
2112jobs :
2213 build-and-deploy :
4839 steps :
4940 - name : Setup Variables
5041 run : |
51- if [ "${{ github.event_name }}" = "release" ]; then
52- TAG="${{ github.event.release.tag_name }}"
53- elif [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
54- TAG="${{ inputs.test_version }}"
55- else
56- # Fallback for 'push' trigger (Quick & Dirty testing)
57- TAG="v0.0.0"
58- fi
42+ TAG="${{ github.event.release.tag_name }}"
5943
6044 echo "Using Version Tag: $TAG"
6145
6852 - name : Checkout Code
6953 uses : actions/checkout@v4
7054 with :
71- # If Manual Test or Push: Checkout the current branch/commit
72- # If Real Release: Checkout the specific Tag
7355 ref : ${{ github.event_name == 'release' && github.event.release.tag_name || github.ref }}
7456
7557 - name : Set up .NET
@@ -129,7 +111,6 @@ jobs:
129111 env :
130112 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
131113
132- # Explicitly use PowerShell for Windows zipping
133114 - name : Zip Offline Bundle (Windows)
134115 if : runner.os == 'Windows'
135116 shell : pwsh
@@ -141,7 +122,6 @@ jobs:
141122 cd OfflineBuild
142123 zip -r ../${{ env.OFFLINE_ZIP_NAME }} .
143124
144- # 3. UPDATED: Only run the upload step on a REAL release
145125 - name : Upload Published Binaries to Release
146126 if : github.event_name == 'release'
147127 uses : softprops/action-gh-release@v2
@@ -152,14 +132,3 @@ jobs:
152132 ${{ env.DMG_FILE_NAME }}
153133 env :
154134 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
155-
156- # 4. NEW: For testing, upload as Artifacts instead of Release Assets
157- - name : Upload Test Artifacts
158- if : github.event_name != 'release'
159- uses : actions/upload-artifact@v4
160- with :
161- name : test-build-${{ matrix.os_name_tag }}
162- path : |
163- ${{ env.ZIP_FILE_NAME }}
164- ${{ env.OFFLINE_ZIP_NAME }}
165- ${{ env.DMG_FILE_NAME }}
0 commit comments