Skip to content

Commit b056757

Browse files
committed
Fix tarballs upload
1 parent a619c02 commit b056757

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,27 +91,32 @@ jobs:
9191
release:
9292
needs: [package_tarballs, sdists]
9393
runs-on: ubuntu-latest
94-
if: github.ref_type == 'tag'
9594
permissions:
9695
contents: write
9796
discussions: write
9897
steps:
9998
- uses: actions/download-artifact@v4
10099
with:
101100
name: package_tarballs
101+
path: tarballs
102102

103103
- uses: actions/download-artifact@v4
104104
with:
105105
name: dist
106106
path: dist
107107

108+
- name: List files
109+
run: |
110+
ls -l -R dist
111+
ls -l -R tarballs
112+
108113
- name: Create release
109114
uses: softprops/action-gh-release@v2
110115
with:
111116
files: |
112117
dist/*
113-
upstream/*
114-
token: ${{ secrets.RELEASE_CREATION_TOKEN }}
118+
tarballs/*
119+
token: ${{ github.ref_type == 'tag' && secrets.RELEASE_CREATION_TOKEN || 'FAIL' }}
115120
generate_release_notes: true
116121
prerelease: ${{ contains(github.ref_name, 'beta') || contains(github.ref_name, 'rc') }}
117122
discussion_category_name: announcements

0 commit comments

Comments
 (0)