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 8920b83
Show file tree
Hide file tree
Showing 2 changed files with 9 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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Display Artifact
run: |
ls -l
mv ${{ env.artifact_name }}.exe SduNetCheckTool-${{ github.ref_name }}.exe
mv SduNetCheckTool.GUI.exe SduNetCheckTool-${{ github.ref_name }}.exe
- name: Create Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 8920b83

Please sign in to comment.