Skip to content

Commit 9e41137

Browse files
authored
Update GithubActions.yml
1 parent 19fa16e commit 9e41137

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/GithubActions.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,22 @@ jobs:
8787
shell: pwsh
8888
run: dotnet restore
8989

90+
# # Step to publish the project
91+
# - name: Publish
92+
# shell: pwsh
93+
# run: dotnet publish -c Release --self-contained -r win-x64
94+
9095
# Step to publish the project
9196
- name: Publish
9297
shell: pwsh
93-
run: dotnet publish -c Release --self-contained -r win-x64
98+
run: msbuild ${{ env.projectName }}.sln /t:Publish /p:Configuration=Release /p:PublishDir=${{ env.binariesDirectory }}/publish/
9499

95100
# Step to create a build artifact
96101
- name: Create Build Artifact
97102
shell: pwsh
98103
run: |
99-
New-Item -Path "${{ env.artifactStagingDirectory }}" -ItemType Directory
100104
Compress-Archive `
101-
-Path ${{ env.projectName }}/bin/Release/net8.0-windows/win-x64./publish/* `
105+
-Path ${{ env.binariesDirectory }}/publish/* `
102106
-DestinationPath ${{ env.artifactStagingDirectory }}/${{ env.projectName }}.${{ env.buildVersion }}-win-x64.zip
103107
104108
# Step to upload the build artifact
@@ -141,4 +145,4 @@ jobs:
141145
name: ${{ env.artifactType }} v${{ env.buildVersion }}
142146
generate_release_notes: true
143147
env:
144-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
148+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)