Skip to content

Commit 0dc7039

Browse files
committed
chore: add more logging to action
1 parent a6f041d commit 0dc7039

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ jobs:
110110
111111
- name: Publish single-file executable
112112
run: |
113+
echo "Publishing for runtime: ${{ matrix.runtime }}"
114+
echo "Version: ${{ steps.version.outputs.version }}"
113115
dotnet publish src/Nuggy.Cli.csproj \
114116
--configuration Release \
115117
--runtime ${{ matrix.runtime }} \
@@ -124,17 +126,33 @@ jobs:
124126
-p:FileVersion=${{ steps.version.outputs.file_version }} \
125127
-p:Version=${{ steps.version.outputs.version }}
126128
129+
- name: Debug published files
130+
run: |
131+
echo "Published files for ${{ matrix.runtime }}:"
132+
ls -la ./artifacts/publish/${{ matrix.runtime }}/
133+
127134
- name: Create archive
128135
run: |
136+
echo "Checking artifacts directory structure:"
137+
find ./artifacts -type f | head -20
138+
echo "Changing to publish directory for ${{ matrix.runtime }}..."
129139
cd ./artifacts/publish/${{ matrix.runtime }}
140+
echo "Creating archive for ${{ matrix.runtime }}..."
130141
if [[ "${{ matrix.runtime }}" == win-* ]]; then
131142
# Windows - create zip
132143
zip -r "../../../nuggy-${{ steps.version.outputs.version }}-${{ matrix.runtime }}.zip" .
144+
echo "Created zip archive"
133145
else
134146
# Linux/macOS - create tar.gz
135147
tar -czf "../../../nuggy-${{ steps.version.outputs.version }}-${{ matrix.runtime }}.tar.gz" .
148+
echo "Created tar.gz archive"
136149
fi
137150
151+
- name: Debug created archives
152+
run: |
153+
echo "Created archives:"
154+
ls -la ./artifacts/nuggy-${{ steps.version.outputs.version }}-${{ matrix.runtime }}.*
155+
138156
- name: Upload artifacts
139157
uses: actions/upload-artifact@v4
140158
with:

src/Nuggy.Cli.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
<PackageReadmeFile>README.md</PackageReadmeFile>
1414
</PropertyGroup>
1515

16-
<PropertyGroup Condition="'$(PublishProtocol)' != '' OR '$(PublishSingleFile)' == 'true'">
17-
<PublishTrimmed>true</PublishTrimmed>
18-
<TrimMode>link</TrimMode>
19-
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
20-
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
16+
<PropertyGroup Condition="'$(PublishSingleFile)' == 'true'">
17+
<PublishTrimmed Condition="'$(PublishTrimmed)' == ''">true</PublishTrimmed>
18+
<TrimMode Condition="'$(TrimMode)' == ''">link</TrimMode>
19+
<EnableCompressionInSingleFile Condition="'$(EnableCompressionInSingleFile)' == ''">true</EnableCompressionInSingleFile>
20+
<IncludeNativeLibrariesForSelfExtract Condition="'$(IncludeNativeLibrariesForSelfExtract)' == ''">true</IncludeNativeLibrariesForSelfExtract>
2121
</PropertyGroup>
2222

2323
<ItemGroup>

0 commit comments

Comments
 (0)