Skip to content
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
22 changes: 17 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,42 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- name: Setup .NET Framework
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
dotnet-version: '6.0.x'

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.1
uses: microsoft/setup-msbuild@v1.1

- name: Build
run: msbuild "./Desktop Notes/Desktop Notes/Desktop Notes.csproj" /p:Configuration=Release /p:Platform="AnyCPU"
shell: powershell


- name: Create installer
run: |
dotnet tool install --global wix --version 4.0.5
wix build Product.wxs -o "./Desktop Notes/Desktop Notes/bin/Release/Desktop_Notes.msi"

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Desktop Notes
path: "Desktop Notes/Desktop Notes/bin/Release/**"

- name: Update latest Release
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: softprops/action-gh-release@v2
with:
tag_name: latest
name: Latest Build
prerelease: true
make_latest: false
files: "Desktop Notes/Desktop Notes/bin/Release/Desktop_Notes.msi"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}



Loading