@@ -110,8 +110,6 @@ jobs:
110110
111111 - name : Publish single-file executable
112112 run : |
113- echo "Publishing for runtime: ${{ matrix.runtime }}"
114- echo "Version: ${{ steps.version.outputs.version }}"
115113 dotnet publish src/Nuggy.Cli.csproj \
116114 --configuration Release \
117115 --runtime ${{ matrix.runtime }} \
@@ -127,42 +125,11 @@ jobs:
127125 -p:FileVersion=${{ steps.version.outputs.file_version }} \
128126 -p:Version=${{ steps.version.outputs.version }}
129127
130- - name : Debug published files
131- run : |
132- echo "Published files for ${{ matrix.runtime }}:"
133- ls -la ./artifacts/publish/${{ matrix.runtime }}/
134-
135128 - name : Create archive
136129 run : |
137- echo "Creating archive for ${{ matrix.runtime }}..."
138- echo "Source directory: ./artifacts/publish/${{ matrix.runtime }}/"
139- echo "Files to archive:"
140- ls -la ./artifacts/publish/${{ matrix.runtime }}/
141-
142130 # Always create tar.gz archives regardless of platform (Linux runner has tar available)
143131 ARCHIVE_PATH="./artifacts/nuggy-${{ steps.version.outputs.version }}-${{ matrix.runtime }}.tar.gz"
144- echo "Creating tar.gz archive: $ARCHIVE_PATH"
145132 tar -czf "$ARCHIVE_PATH" -C "./artifacts/publish/${{ matrix.runtime }}" .
146- echo "Created tar.gz archive"
147-
148- - name : Verify archive creation
149- run : |
150- echo "Verifying archive was created..."
151- echo "Current working directory: $(pwd)"
152- echo "Looking for archive files..."
153-
154- # Always expect tar.gz files now
155- ARCHIVE_FILE="./artifacts/nuggy-${{ steps.version.outputs.version }}-${{ matrix.runtime }}.tar.gz"
156-
157- if [ -f "$ARCHIVE_FILE" ]; then
158- echo "✅ Archive found: $ARCHIVE_FILE"
159- ls -la "$ARCHIVE_FILE"
160- else
161- echo "❌ Archive not found: $ARCHIVE_FILE"
162- echo "Files in artifacts directory:"
163- ls -la ./artifacts/
164- exit 1
165- fi
166133
167134 - name : Upload artifacts
168135 uses : actions/upload-artifact@v4
@@ -212,11 +179,6 @@ jobs:
212179 with :
213180 path : ./artifacts
214181
215- - name : List downloaded artifacts for debugging
216- run : |
217- echo "Downloaded artifacts structure:"
218- find ./artifacts -type f -name "*.tar.gz" | sort
219-
220182 - name : Create GitHub Release
221183 uses : softprops/action-gh-release@v2
222184 with :
@@ -240,7 +202,7 @@ jobs:
240202
241203 1. Download the appropriate archive for your platform
242204 2. Extract the archive: `tar -xzf nuggy-*.tar.gz`
243- 3. Run the `nuggy` executable (or `Nuggy.Cli.exe` on Windows)
205+ 3. Run the `nuggy` executable
244206
245207 ### Alternatively, install as a .NET tool
246208
0 commit comments