From b585b0f5c4a69f5f1e127c5938ef5ae8ae6e5ed1 Mon Sep 17 00:00:00 2001 From: bobbahbrown Date: Sat, 8 Jul 2023 15:37:18 -0300 Subject: [PATCH] Swap releases to use 7z, fix issue with release asset names --- .github/workflows/release.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e39f017..615c574 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,21 +18,21 @@ jobs: - name: Prepare publish artifacts run: | dotnet publish CentCom.API -o publish/linux-x64/CentCom.API/ -r "linux-x64" --self-contained false -c Release --nologo - 7z a publish/CentCom.API-linux-x64.zip -r ./publish/linux-x64/CentCom.API/* + 7z a publish/CentCom.API-linux-x64.7z -r ./publish/linux-x64/CentCom.API/* dotnet publish CentCom.Server -o publish/linux-x64/CentCom.Server -r "linux-x64" --self-contained false -c Release --nologo - 7z a publish/CentCom.Server-linux-x64.zip -r ./publish/linux-x64/CentCom.Server/* + 7z a publish/CentCom.Server-linux-x64.7z -r ./publish/linux-x64/CentCom.Server/* dotnet publish CentCom.Bot -o publish/linux-x64/CentCom.Bot -r "linux-x64" --self-contained false -c Release --nologo - 7z a publish/CentCom.Bot-linux-x64.zip -r ./publish/linux-x64/CentCom.Bot/* + 7z a publish/CentCom.Bot-linux-x64.7z -r ./publish/linux-x64/CentCom.Bot/* dotnet publish CentCom.Exporter -o publish/linux-x64/CentCom.Exporter -r "linux-x64" --self-contained false -c Release --nologo - 7z a publish/CentCom.Exporter-linux-x64.zip -r ./publish/linux-x64/CentCom.Exporter/* + 7z a publish/CentCom.Exporter-linux-x64.7z -r ./publish/linux-x64/CentCom.Exporter/* dotnet publish CentCom.API -o publish/win-x64/CentCom.API/ -r "win-x64" --self-contained false -c Release --nologo - 7z a publish/CentCom.API-win-x64.zip -r ./publish/win-x64/CentCom.API/* + 7z a publish/CentCom.API-win-x64.7z -r ./publish/win-x64/CentCom.API/* dotnet publish CentCom.Server -o publish/win-x64/CentCom.Server -r "win-x64" --self-contained false -c Release --nologo - 7z a publish/CentCom.Server-win-x64.zip -r ./publish/win-x64/CentCom.Server/* + 7z a publish/CentCom.Server-win-x64.7z -r ./publish/win-x64/CentCom.Server/* dotnet publish CentCom.Bot -o publish/win-x64/CentCom.Bot -r "win-x64" --self-contained false -c Release --nologo - 7z a publish/CentCom.Bot-win-x64.zip -r ./publish/win-x64/CentCom.Bot/* + 7z a publish/CentCom.Bot-win-x64.7z -r ./publish/win-x64/CentCom.Bot/* dotnet publish CentCom.Exporter -o publish/win-x64/CentCom.Exporter -r "win-x64" --self-contained false -c Release --nologo - 7z a publish/CentCom.Exporter-win-x64.zip -r ./publish/win-x64/CentCom.Exporter/* + 7z a publish/CentCom.Exporter-win-x64.7z -r ./publish/win-x64/CentCom.Exporter/* - name: Upload release artifacts uses: actions/github-script@v4 with: @@ -55,8 +55,8 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, release_id: release.data.id, - name: `publish/${proj}-${rt}.zip`, - data: fs.readFileSync(`publish/${proj}-${rt}.zip`) + name: `${proj}-${rt}.7z`, + data: fs.readFileSync(`publish/${proj}-${rt}.7z`) }); } } \ No newline at end of file