File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,6 +126,8 @@ jobs:
126126 runs-on : ubuntu-latest
127127 needs : [build, package]
128128 if : github.event_name == 'release'
129+ permissions :
130+ contents : write
129131
130132 steps :
131133 - name : Get version from release tag
@@ -140,15 +142,19 @@ jobs:
140142 with :
141143 path : artifacts
142144 pattern : FindMyContacts-${{ steps.version.outputs.version }}-*
145+ merge-multiple : true
143146
144147 - name : List artifacts
145- run : find artifacts -type f
148+ run : |
149+ echo "Downloaded artifacts:"
150+ find artifacts -type f -name "*.zip" -o -name "*.tar.gz" | sort
146151
147- - name : Upload release assets
148- uses : softprops/action-gh-release@v1
152+ - name : Upload release assets to GitHub Release
153+ uses : softprops/action-gh-release@v2
149154 with :
150155 files : |
151- artifacts/**/*.zip
152- artifacts/**/*.tar.gz
156+ artifacts/*.zip
157+ artifacts/*.tar.gz
158+ fail_on_unmatched_files : true
153159 env :
154160 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments