Skip to content

Commit

Permalink
修复build路径重复导致actions失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
CHKZL committed Jun 9, 2024
1 parent ed79afa commit e582ab2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/DDTV_Dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ jobs:
run: cd Server && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_output

- name: Build Update
run: cd Update && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_output
run: cd Update && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_update_output

- name: Move Update (Linux or macOS)
if: runner.os != 'Windows'
run: |
source="Update/build_output/*"
source="Update/build_update_output/*"
destination="Server/build_output/Update"
mkdir -p $destination
Expand All @@ -140,7 +140,7 @@ jobs:
if: runner.os == 'Windows'
shell: pwsh
run: |
$source = "Update/build_output/*"
$source = "Update/build_update_output/*"
$destination = "Server/build_output/Update"
New-Item -ItemType Directory -Force -Path $destination
Expand Down Expand Up @@ -285,13 +285,13 @@ jobs:
run: cd Desktop && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_output

- name: Build Update
run: cd Update && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_output
run: cd Update && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_update_output

- name: Move Update (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
$source = "Update/build_output/*"
$source = "Update/build_update_output/*"
$destination = "Desktop/build_output/Update"
New-Item -ItemType Directory -Force -Path $destination
Expand Down Expand Up @@ -402,13 +402,13 @@ jobs:
run: cd Client && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_output

- name: Build Update
run: cd Update && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_output
run: cd Update && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_update_output

- name: Move Update (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
$source = "Update/build_output/*"
$source = "Update/build_update_output/*"
$destination = "Client/build_output/Update"
New-Item -ItemType Directory -Force -Path $destination
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/DDTV_Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ jobs:
run: cd Server && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_output

- name: Build Update
run: cd Update && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_output
run: cd Update && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_update_output

- name: Move Update (Linux or macOS)
if: runner.os != 'Windows'
run: |
source="Update/build_output/*"
source="Update/build_update_output/*"
destination="Server/build_output/Update"
mkdir -p $destination
Expand All @@ -140,7 +140,7 @@ jobs:
if: runner.os == 'Windows'
shell: pwsh
run: |
$source = "Update/build_output/*"
$source = "Update/build_update_output/*"
$destination = "Server/build_output/Update"
New-Item -ItemType Directory -Force -Path $destination
Expand Down Expand Up @@ -285,13 +285,13 @@ jobs:
run: cd Desktop && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_output

- name: Build Update
run: cd Update && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_output
run: cd Update && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_update_output

- name: Move Update (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
$source = "Update/build_output/*"
$source = "Update/build_update_output/*"
$destination = "Desktop/build_output/Update"
New-Item -ItemType Directory -Force -Path $destination
Expand Down Expand Up @@ -402,13 +402,13 @@ jobs:
run: cd Client && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_output

- name: Build Update
run: cd Update && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_output
run: cd Update && dotnet publish --runtime ${{ matrix.runtime }} --configuration Release --self-contained true --output build_update_output

- name: Move Update (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
$source = "Update/build_output/*"
$source = "Update/build_update_output/*"
$destination = "Client/build_output/Update"
New-Item -ItemType Directory -Force -Path $destination
Expand Down

0 comments on commit e582ab2

Please sign in to comment.