77
88env :
99 DOTNET_VERSION : 10.0
10- STANDALONE_PROJECT : StarMap.Loader/StarMap.Loader.csproj
11- LAUNCHER_PROJECT : StarMap.Launcher/StarMap.Launcher.csproj
10+ PROJECT : StarMap/StarMap.csproj
1211 API_PROJECT : StarMap.API/StarMap.API.csproj
13- STANDALONE_OUTPUT_PATH : ./publish/standalone
14- LAUNCHER_OUTPUT_PATH : ./publish/launcher
1512 OUTPUT_PATH : ./publish
1613 NUGET_SOURCE : " https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
1714 EXCLUDE : " *.pdb *.xml"
@@ -86,42 +83,24 @@ jobs:
8683 --store-password-in-clear-text \
8784 --name github "${{ env.NUGET_SOURCE }}"
8885
89- - name : Build launcher
90- run : |
91- dotnet publish ${{ env.LAUNCHER_PROJECT }} \
92- -c Release \
93- -o ${{ env.LAUNCHER_OUTPUT_PATH }} \
94- -r win-x64 \
95- --self-contained false \
96- /p:PackageVersion=${{ steps.version.outputs.new_version }} \
97- /p:Version=${{ steps.version.outputs.new_version }} \
98- /p:AssemblyVersion=${{ steps.version.outputs.new_version }} \
99- /p:FileVersion=${{ steps.version.outputs.new_version }}
100-
10186 - name : Build standalone
10287 run : |
103- dotnet publish ${{ env.STANDALONE_PROJECT }} \
88+ dotnet publish ${{ env.PROJECT }} \
10489 -c Release \
105- -o ${{ env.STANDALONE_OUTPUT_PATH }} \
90+ -o ${{ env.OUTPUT_PATH }} \
10691 -r win-x64 \
10792 --self-contained false \
10893 /p:PackageVersion=${{ steps.version.outputs.new_version }} \
10994 /p:Version=${{ steps.version.outputs.new_version }} \
11095 /p:AssemblyVersion=${{ steps.version.outputs.new_version }} \
11196 /p:FileVersion=${{ steps.version.outputs.new_version }}
11297
113- - name : Rename executables
114- run : |
115- mv ${{ env.LAUNCHER_OUTPUT_PATH }}/StarMap.Launcher.exe ${{ env.LAUNCHER_OUTPUT_PATH }}/StarMap.exe
116- mv ${{ env.STANDALONE_OUTPUT_PATH }}/StarMap.Loader.exe ${{ env.STANDALONE_OUTPUT_PATH }}/StarMap.exe
117-
11898 - name : Upload build artifacts
11999 uses : actions/upload-artifact@v4
120100 with :
121101 name : publish
122102 path : |
123- ${{ env.LAUNCHER_OUTPUT_PATH }}
124- ${{ env.STANDALONE_OUTPUT_PATH }}
103+ ${{ env.OUTPUT_PATH }}
125104 version.txt
126105 retention-days : 1
127106
@@ -216,16 +195,10 @@ jobs:
216195 sudo apt-get update -y
217196 sudo apt-get install -y zip
218197
219- - name : Package launcher ZIP
220- run : |
221- cd ./build_artifacts/${{ env.LAUNCHER_OUTPUT_PATH }}
222- zip -r $GITHUB_WORKSPACE/StarMapLauncher-${{ needs.build.outputs.new_version }}.zip . -x ${{ env.EXCLUDE }}
223- cd -
224-
225- - name : Package standalone ZIP
198+ - name : Package ZIP
226199 run : |
227- cd ./build_artifacts/${{ env.STANDALONE_OUTPUT_PATH }}
228- zip -r $GITHUB_WORKSPACE/StarMapStandalone -${{ needs.build.outputs.new_version }}.zip . -x ${{ env.EXCLUDE }}
200+ cd ./build_artifacts/${{ env.OUTPUT_PATH }}
201+ zip -r $GITHUB_WORKSPACE/StarMap -${{ needs.build.outputs.new_version }}.zip . -x ${{ env.EXCLUDE }}
229202 cd -
230203
231204 - name : Create GitHub Release
@@ -237,8 +210,7 @@ jobs:
237210 Automated release for version ${{ needs.build.outputs.new_version }}
238211 Triggered by PR #${{ github.event.pull_request.number }}
239212 files : |
240- StarMapLauncher-${{ needs.build.outputs.new_version }}.zip
241- StarMapStandalone-${{ needs.build.outputs.new_version }}.zip
213+ StarMap-${{ needs.build.outputs.new_version }}.zip
242214
243215 build-release-installer :
244216 runs-on : windows-latest
0 commit comments