From 9c4e46e272a5d6f66507098b178809d602627e2d Mon Sep 17 00:00:00 2001 From: WuChang <3142324836@qq.com> Date: Wed, 7 Aug 2024 19:39:31 +0800 Subject: [PATCH] Add license to artifact --- .github/workflows/build-artifacts.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-artifacts.yml b/.github/workflows/build-artifacts.yml index 3bfcd4a..8e82dda 100644 --- a/.github/workflows/build-artifacts.yml +++ b/.github/workflows/build-artifacts.yml @@ -46,7 +46,13 @@ jobs: - name: Move artifacts shell: pwsh - run: Move-Item -Path TuneLab\bin\Release\net8.0\${{ matrix.runtime }}\publish -Destination workspace + working-directory: ${{github.workspace}} + run: Move-Item -Path "TuneLab\bin\Release\net8.0\${{ matrix.runtime }}\publish" -Destination "workspace\" + + - name: Copy license to artifacts path + shell: pwsh + working-directory: ${{github.workspace}} + run: Copy-Item "LICENSE.txt" -Destination "workspace\" - name: Generate artifact attestation - Windows if: runner.os == 'Windows' && github.event_name != 'pull_request'