diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 12c217b8..bd60547d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -66,12 +66,12 @@ jobs: ("Version(""" + ('${{ steps.create_release.outputs.tag_name }}' -replace "v","") + """)]") | Out-File AssemblyInfo.cs - name: Build current - run: dotnet build --no-restore + run: dotnet build --no-restore --configuration Release - name: Upload a Build current uses: actions/upload-artifact@v2.2.4 with: name: BusinessCentral.LinterCop.current.dll - path: bin/Debug/netstandard2.1/BusinessCentral.LinterCop.dll + path: bin/Release/netstandard2.1/BusinessCentral.LinterCop.dll - name: Remove a Release Asset current uses: flcdrg/remove-release-asset-action@v1.0.13 env: @@ -86,23 +86,23 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: bin/Debug/netstandard2.1/BusinessCentral.LinterCop.dll + asset_path: bin/Release/netstandard2.1/BusinessCentral.LinterCop.dll asset_name: BusinessCentral.LinterCop.current.dll asset_content_type: application/octet-stream - name: Clear Build output - run: Remove-Item -Path "bin/Debug" -Force -Recurse -Verbose; + run: Remove-Item -Path "bin/Release" -Force -Recurse -Verbose; - name: Unzip vsix next run: > Remove-Item -Path "ms-dynamics-smb.al-latest" -Force -Recurse -Verbose; 7z x "ALLanguage_next.vsix" "-oms-dynamics-smb.al-latest" extension\bin\Analyzers -r; - name: Build next - run: dotnet build --no-restore + run: dotnet build --no-restore --configuration Release - name: Upload a Build next uses: actions/upload-artifact@v2.2.4 with: name: BusinessCentral.LinterCop.next.dll - path: bin/Debug/netstandard2.1/BusinessCentral.LinterCop.dll + path: bin/Release/netstandard2.1/BusinessCentral.LinterCop.dll - name: Remove a Release Asset next uses: flcdrg/remove-release-asset-action@v1.0.13 env: @@ -117,6 +117,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: bin/Debug/netstandard2.1/BusinessCentral.LinterCop.dll + asset_path: bin/Release/netstandard2.1/BusinessCentral.LinterCop.dll asset_name: BusinessCentral.LinterCop.next.dll asset_content_type: application/octet-stream