Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build using Release configuration #458

Merged
merged 2 commits into from
Dec 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]
env:
Expand All @@ -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/[email protected]
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/[email protected]
env:
Expand All @@ -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
Loading