Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
edit ci
Browse files Browse the repository at this point in the history
- 修改了上传的文件,或许解决了无法描述的 bug
- 删去了 安装 dotnet ,因为没有使用到
  • Loading branch information
Jenway committed Feb 28, 2024
1 parent 3db99e7 commit 5c62a40
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '3.1.x'
# - uses: actions/setup-dotnet@v4
# with:
# dotnet-version: '3.1.x'

- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
Expand All @@ -48,15 +48,15 @@ jobs:
- name: Restore and build the Wpf application
run: ./.github/utils/build.ps1 -SolutionPath ${{ env.solutionPath }} -Configuration ${{ env.Configuration }} -Platform ${{ env.Platform }} -RuntimeIdentifier ${{ env.RuntimeIdentifier }}

- name: Rename file
run: |
mkdir build
Compress-Archive -Path ${{ env.guiProjectDirectory }}\${{ env.appPackagesDirectory }}\ -DestinationPath build\${{ env.appPackagesExecutable }}
# - name: Rename file
# run: |
# mkdir build
# Compress-Archive -Path ${{ env.guiProjectDirectory }}\${{ env.appPackagesDirectory }}\ -DestinationPath build\${{ env.appPackagesExecutable }}

- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifactName }}
path: |
build\${{ env.appPackagesExecutable }}
SduNetCheckTool.GUI\bin\x64\Release\SduNetCheckTool.GUI.exe
retention-days: 15
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:

env:
# app 命名 [名字]-[commit-tag]
artifact_name: SduNetCheckTool-build.${{github.run_number}}-${{ github.sha }}
# artifact_name: SduNetCheckTool-build.${{github.run_number}}-${{ github.sha }}
artifact_name: SduNetCheckTool.GUI.exe

steps:
- name: Checkout
Expand Down

0 comments on commit 5c62a40

Please sign in to comment.