Skip to content

Commit

Permalink
Merge pull request #6 from sentrysoftware/feature/fix-artifact-upload
Browse files Browse the repository at this point in the history
Fixed artifact upload in msbuild.yml
  • Loading branch information
bertysentry authored Sep 23, 2024
2 parents beb21a3 + 5f4b9ab commit 2034e38
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ env:
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: Release

# Artifact name
ARTIFACT_NAME: EventLogReader

permissions:
contents: read

Expand All @@ -30,13 +33,13 @@ jobs:
uses: microsoft/setup-msbuild@v2

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /t:Rebuild /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}

- name: Upload Executable Artifact
uses: actions/upload-artifact@v4
with:
name: SEN_EventLogReader_exe
path: ./Release/SEN_EventLogReader.exe
name: ${{env.ARTIFACT_NAME}}
path: ./Release/*.exe
if-no-files-found: error

0 comments on commit 2034e38

Please sign in to comment.