Skip to content

Commit

Permalink
Swap releases to use 7z, fix issue with release asset names
Browse files Browse the repository at this point in the history
bobbah committed Jul 8, 2023
1 parent 93a189c commit b585b0f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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`)
});
}
}

0 comments on commit b585b0f

Please sign in to comment.