Skip to content

Commit 02ee0dd

Browse files
committed
Merge branch 'master' of https://github.com/kitUIN/ShadowViewer
2 parents 1c1e149 + 306feaa commit 02ee0dd

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/build.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
matrix:
2828
configuration: [Debug]
29-
platform: [x64,x86,ARM64]
29+
platform: [x64, x86, arm64]
3030

3131
runs-on: windows-latest
3232
env:
@@ -65,9 +65,7 @@ jobs:
6565
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.BASE64_ENCODED_PFX }}")
6666
$certificatePath = "GitHubActionsWorkflow.pfx"
6767
[IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
68-
- name: Remove the pfx
69-
run: |
70-
ls
68+
7169
- name: Create the app package
7270
run: msbuild $env:Solution_Name/$env:Solution_Name.csproj /p:Configuration=$env:Configuration /p:Platform=$env:Platform /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=../GitHubActionsWorkflow.pfx /p:AppxPackageDir="$env:Appx_Package_Dir" /p:GenerateAppxPackageOnBuild=true
7371
env:
@@ -76,14 +74,22 @@ jobs:
7674
Appx_Package_Dir: ..\Packages\
7775
Configuration: ${{ matrix.configuration }}
7876
Platform: ${{ matrix.platform }}
77+
78+
- name: Get Version
79+
run: |
80+
[xml]$proj = Get-Content $env:Solution_Name/Package.appxmanifest
81+
$v = $proj.Package.Identity.Version
82+
echo "VERSION=$v" >> $env:GITHUB_ENV
7983
8084
- name: Remove the pfx
8185
run: |
8286
Remove-Item -path GitHubActionsWorkflow.pfx
83-
ls
8487
8588
- name: Upload MSIX package
8689
uses: actions/upload-artifact@v4
8790
with:
88-
name: ${{ env.Solution_Name }}_${{ matrix.platform }}_${{ matrix.configuration }}
89-
path: Packages
91+
name: ${{ env.Solution_Name }}_${{ env.VERSION }}_${{ matrix.platform }}_${{ matrix.configuration }}
92+
path: |
93+
Packages/${{ env.Solution_Name }}*/*.*
94+
Packages/${{ env.Solution_Name }}*/Add-AppDevPackage.resources
95+
Packages/${{ env.Solution_Name }}*/Dependencies/${{ matrix.platform }}/*.*

0 commit comments

Comments
 (0)