Update dotnet.yml

This commit is contained in:
2024-10-24 19:20:08 +02:00
committed by GitHub
parent e2fdd9a2d7
commit ac869c43da

View File

@@ -27,13 +27,6 @@ jobs:
with:
version: ${{ steps.previoustag.outputs.tag }}
- name: Set version
id: package_version
uses: KageKirin/set-csproj-version@v0
with:
file: Bot/Lunaris2.csproj
version: ${{ steps.semver.outputs.patch }}
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
@@ -43,7 +36,7 @@ jobs:
run: dotnet restore ./Bot/Lunaris2.csproj
- name: Build
run: dotnet build ./Bot/Lunaris2.csproj --no-restore -c Release -o ./out
run: dotnet build ./Bot/Lunaris2.csproj --no-restore -c Release /p:Version=${{ steps.previoustag.outputs.tag }} -o ./out
- name: Publish
run: dotnet publish ./Bot/Lunaris2.csproj --configuration Release --output ./out