Skip to content

Commit f5a9cdc

Browse files
committed
Standardize publish process and update output directory
Updated `publish.yml` to use the `Net9.0-Any CPU.pubxml` profile, replacing the old `Net9.0-Win64.pubxml`. Adjusted GitHub release file paths to include all files from the new `Output` directory. Updated `.gitignore` to exclude the `Output/` directory and fixed formatting for `*.pyc`. Consolidated publishing settings for a more flexible and generic build configuration.
1 parent 12e4dbf commit f5a9cdc

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ jobs:
4747
4848
# Publish the project
4949
- name: Publish
50-
run: dotnet publish ${{ env.Project_Path }} -p:PublishProfile=Net9.0-Win64.pubxml
50+
run: dotnet publish ${{ env.Project_Path }} -p:PublishProfile=Net9.0-Any CPU.pubxml
5151

5252
# Publish to GitHub releases
5353
- name: Publish
5454
uses: softprops/action-gh-release@v2
5555
with:
56-
files: bin\Publish\ContextMenuManager.exe
56+
files: |
57+
Output/ContextMenuManager*
5758
tag_name: "${{ env.release_version }}"

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,7 @@ paket-files/
258258

259259
# Python Tools for Visual Studio (PTVS)
260260
__pycache__/
261-
*.pyc
261+
*.pyc
262+
263+
# Output
264+
Output/

ContextMenuManager/Properties/PublishProfiles/Net9.0-Win64.pubxml renamed to ContextMenuManager/Properties/PublishProfiles/Net9.0-Any CPU.pubxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
88
<Configuration>Release</Configuration>
99
<Platform>Any CPU</Platform>
1010
<TargetFramework>net9.0-windows</TargetFramework>
11-
<PublishDir>bin\Publish\</PublishDir>
11+
<PublishDir>..\Output</PublishDir>
1212
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
1313
<SelfContained>false</SelfContained>
1414
<PublishSingleFile>true</PublishSingleFile>

0 commit comments

Comments
 (0)