Skip to content

Commit a6f041d

Browse files
committed
chore: fix release permissions and add archive logging
1 parent 17afc0f commit a6f041d

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
branches:
1111
- main
1212

13+
# Add permissions for creating releases
14+
permissions:
15+
contents: write
16+
packages: write
17+
1318
env:
1419
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
1520
DOTNET_NOLOGO: true
@@ -143,6 +148,9 @@ jobs:
143148
needs: build-cross-platform
144149
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
145150
runs-on: ubuntu-latest
151+
permissions:
152+
contents: write
153+
packages: write
146154

147155
steps:
148156
- name: Checkout code
@@ -174,6 +182,11 @@ jobs:
174182
with:
175183
path: ./artifacts
176184

185+
- name: List downloaded artifacts for debugging
186+
run: |
187+
echo "Downloaded artifacts structure:"
188+
find ./artifacts -type f -name "*.zip" -o -name "*.tar.gz" | sort
189+
177190
- name: Create GitHub Release
178191
uses: softprops/action-gh-release@v2
179192
with:
@@ -206,7 +219,7 @@ jobs:
206219
```
207220
208221
${{ steps.version.outputs.is_prerelease == 'true' && '> **Note**: This is a preview release built from the latest main branch. Use at your own risk.' || '' }}
209-
files: "./artifacts/nuggy-*/nuggy-*"
222+
files: "./artifacts/nuggy-*/nuggy-${{ steps.version.outputs.version }}-*"
210223
draft: false
211224
prerelease: ${{ steps.version.outputs.is_prerelease }}
212225
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)