Skip to content

Commit 76c3ce7

Browse files
ci: fix artifact upload\n\n- Add debug step to list files after build\n- Fix artifact path to match actual .node files\n- Exclude target directory to avoid duplicates
1 parent 16ed236 commit 76c3ce7

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/CI.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,23 @@ jobs:
147147
run: ${{ matrix.settings.build }}
148148
shell: bash
149149

150+
- name: Debug - List files after build
151+
run: |
152+
echo "Current directory:"
153+
pwd
154+
echo "\nFiles in current directory:"
155+
ls -la
156+
echo "\nNode files:"
157+
find . -name "*.node"
158+
shell: bash
159+
150160
- name: Upload artifact
151-
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main'
152161
uses: actions/upload-artifact@v4
153162
with:
154163
name: bindings-${{ matrix.settings.target }}
155-
path: ${{ env.APP_NAME }}.*.node
164+
path: |
165+
*.node
166+
!target/**/*.node
156167
if-no-files-found: error
157168
retention-days: 1
158169

0 commit comments

Comments
 (0)