|
8 | 8 | jobs:
|
9 | 9 | release:
|
10 | 10 | runs-on: windows-latest
|
| 11 | + env: |
| 12 | + dotnet_version: '9.x.x' # Extracted variable for .NET version |
| 13 | + dotnet_target: 'net9.0-windows10.0.26100' # Extracted variable for target framework version |
| 14 | + |
11 | 15 | steps:
|
12 | 16 | - name: Checkout source
|
13 | 17 | uses: actions/checkout@v4
|
14 |
| - |
| 18 | + |
15 | 19 | - name: Setup .NET
|
16 | 20 | uses: actions/setup-dotnet@v4
|
17 | 21 | with:
|
18 |
| - dotnet-version: '8.x.x' |
19 |
| - |
| 22 | + dotnet-version: ${{ env.dotnet_version }} # Using the extracted .NET version |
| 23 | + |
20 | 24 | - name: Publish-arm64
|
21 | 25 | run: dotnet publish /p:RuntimeIdentifier=win-arm64
|
22 | 26 | - name: Rename-arm64
|
23 |
| - run: Rename-Item -Path ./Mikoto/bin/Release/net8.0-windows/win-arm64/publish -NewName mikoto-arm64 |
| 27 | + run: Rename-Item -Path ./Mikoto/bin/Release/${{ env.dotnet_target }}/win-arm64/publish -NewName mikoto-arm64 |
24 | 28 | - name: Zip-arm64
|
25 |
| - run: Compress-Archive -Path ./Mikoto/bin/Release/net8.0-windows/win-arm64/mikoto-arm64 -Destination mikoto-arm64.zip |
26 |
| - |
| 29 | + run: Compress-Archive -Path ./Mikoto/bin/Release/${{ env.dotnet_target }}/win-arm64/mikoto-arm64 -Destination mikoto-arm64.zip |
27 | 30 |
|
28 | 31 | - name: Publish-x64
|
29 | 32 | run: dotnet publish /p:RuntimeIdentifier=win-x64
|
30 | 33 | - name: Rename-x64
|
31 |
| - run: Rename-Item -Path ./Mikoto/bin/Release/net8.0-windows/win-x64/publish -NewName mikoto-64bit |
| 34 | + run: Rename-Item -Path ./Mikoto/bin/Release/${{ env.dotnet_target }}/win-x64/publish -NewName mikoto-64bit |
32 | 35 | - name: Zip-x64
|
33 |
| - run: Compress-Archive -Path ./Mikoto/bin/Release/net8.0-windows/win-x64/mikoto-64bit -Destination mikoto-64bit.zip |
34 |
| - |
35 |
| - |
| 36 | + run: Compress-Archive -Path ./Mikoto/bin/Release/${{ env.dotnet_target }}/win-x64/mikoto-64bit -Destination mikoto-64bit.zip |
| 37 | + |
36 | 38 | - name: Publish-x86
|
37 | 39 | run: dotnet publish /p:RuntimeIdentifier=win-x86
|
38 | 40 | - name: Rename-x86
|
39 |
| - run: Rename-Item -Path ./Mikoto/bin/Release/net8.0-windows/win-x86/publish -NewName mikoto-32bit |
| 41 | + run: Rename-Item -Path ./Mikoto/bin/Release/${{ env.dotnet_target }}/win-x86/publish -NewName mikoto-32bit |
40 | 42 | - name: Zip-x86
|
41 |
| - run: Compress-Archive -Path ./Mikoto/bin/Release/net8.0-windows/win-x86/mikoto-32bit -Destination mikoto-32bit.zip |
42 |
| - |
| 43 | + run: Compress-Archive -Path ./Mikoto/bin/Release/${{ env.dotnet_target }}/win-x86/mikoto-32bit -Destination mikoto-32bit.zip |
43 | 44 |
|
44 | 45 | - name: Create Release and Upload Release Asset
|
45 | 46 | uses: softprops/action-gh-release@v2
|
46 | 47 | with:
|
47 |
| - tag_name: ${{ github.ref }} |
48 |
| - name: Release ${{ github.ref }} |
49 |
| - body: TODO New Release. |
50 |
| - draft: true |
51 |
| - prerelease: false |
52 |
| - files: | |
53 |
| - mikoto-arm64.zip |
54 |
| - mikoto-32bit.zip |
55 |
| - mikoto-64bit.zip |
| 48 | + tag_name: ${{ github.ref }} |
| 49 | + name: Release ${{ github.ref }} |
| 50 | + body: TODO New Release. |
| 51 | + draft: true |
| 52 | + prerelease: false |
| 53 | + files: | |
| 54 | + mikoto-arm64.zip |
| 55 | + mikoto-64bit.zip |
| 56 | + mikoto-32bit.zip |
0 commit comments