From edb17e5f2996837ced92d5086e6be56d1de41eb6 Mon Sep 17 00:00:00 2001 From: Vita Chumakova Date: Fri, 22 Dec 2023 18:37:27 +0400 Subject: [PATCH] use new workflow for creating releases --- .github/workflows/dotnet.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 48a3708..95552aa 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -23,7 +23,7 @@ jobs: - name: Restore dependencies run: dotnet restore - - name: Build with .NET Core + - name: Build run: dotnet publish -c Release -f net8.0 -o out/${{ github.event.repository.name }} - name: Upload artifacts @@ -55,19 +55,8 @@ jobs: - name: Create GitHub release id: github_release - uses: actions/create-release@v1.1.4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ncipollo/release-action@v1.13.0 with: - tag_name: ${{ github.ref }} - release_name: ${{ github.event.repository.name }} V${{ github.ref }} - - - name: Upload artifacts to GitHub release - uses: actions/upload-release-asset@v1.0.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.github_release.outputs.upload_url }} - asset_path: out/generic.zip - asset_name: generic.zip - asset_content_type: application/zip + artifacts: "out/*" + makeLatest: true + release_name: ${{ github.event.repository.name }} V${{ github.ref_name }}