Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanMaron authored Apr 5, 2023
1 parent 940f485 commit 94a473b
Showing 1 changed file with 43 additions and 13 deletions.
56 changes: 43 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,25 +79,55 @@ jobs:
-replace "v","") + """)]") | Out-File AssemblyInfo.cs
- name: Build current
run: dotnet build --no-restore
- name: Move dll to current
run: >
mkdir current;
Move-Item bin\Debug\BusinessCentral.LinterCop.dll current\BusinessCentral.LinterCop.dll;
- name: Upload a Build Artifact current
- name: Upload a Build current
uses: actions/upload-artifact@v2.2.4
with:
path: current\
name: BusinessCentral.LinterCop.current.dll
path: bin\Debug\BusinessCentral.LinterCop.dll
- name: Remove a Release Asset current
uses: flcdrg/remove-release-asset-action@v1.0.13
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.create_release.outputs.id }}
asset_name: BusinessCentral.LinterCop.current.dll
- name: Upload Release Asset current
id: upload-release-asset-current
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin\Debug\BusinessCentral.LinterCop.dll
asset_name: BusinessCentral.LinterCop.current.dll
asset_content_type: application/octet-stream

- name: Unzip vsix
run: >
Remove-Item -Path "ms-dynamics-smb.al-latest" -Force -Recurse -ErrorAction SilentlyContinue;
7z x "ALLanguage_next.vsix" "-oms-dynamics-smb.al-latest" extension\bin\Analyzers -r;
- name: Build next
run: dotnet build --no-restore
- name: Move dll to next
run: >
mkdir next;
Move-Item bin\Debug\BusinessCentral.LinterCop.dll next\BusinessCentral.LinterCop.dll;
- name: Upload a Build Artifact next

- name: Upload a Build next
uses: actions/upload-artifact@v2.2.4
with:
path: next\
with:
name: BusinessCentral.LinterCop.next.dll
path: bin\Debug\BusinessCentral.LinterCop.dll
- name: Remove a Release Asset next
uses: flcdrg/remove-release-asset-action@v1.0.13
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.create_release.outputs.id }}
asset_name: BusinessCentral.LinterCop.next.dll
- name: Upload Release Asset next
id: upload-release-asset-next
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin\Debug\BusinessCentral.LinterCop.dll
asset_name: BusinessCentral.LinterCop.next.dll
asset_content_type: application/octet-stream

0 comments on commit 94a473b

Please sign in to comment.