File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -119,3 +119,14 @@ jobs:
119119 else
120120 gh release upload pecl $extension-${{ inputs.extension-ref }}.zip -R ${{ github.repository }} --clobber
121121 fi
122+ upload :
123+ runs-on : ubuntu-latest
124+ needs : pecl-release
125+ steps :
126+ - name : Upload to downloads server
127+ run : |
128+ extension=$(basename "${{ inputs.extension-url }}")
129+ url="https://github.com/${{ github.repository }}/releases/download/pecl/$extension-${{ inputs.extension-ref }}.zip"
130+ gh workflow run pecl.yml -R php/web-downloads -f url="$url" -f extension="$extension" -f ref="${{ inputs.extension-ref }}"
131+ env :
132+ GITHUB_TOKEN : ${{ secrets.TOKEN }}
Original file line number Diff line number Diff line change 66 php-version :
77 description : ' PHP version to build'
88 required : true
9+
910jobs :
1011 php :
1112 strategy :
2728 artifacts :
2829 runs-on : ubuntu-latest
2930 needs : php
31+ outputs :
32+ artifact-id : ${{ steps.artifacts.outputs.artifact-id }}
3033 steps :
3134 - name : Upload artifacts
3235 uses : actions/upload-artifact/merge@v4
36+ id : artifacts
3337 with :
3438 name : artifacts
35- delete-merged : true
39+ delete-merged : true
40+ upload :
41+ runs-on : ubuntu-latest
42+ needs : artifacts
43+ steps :
44+ - name : Upload to downloads server
45+ run : |
46+ url="https://api.github.com/repos/${{ github.repository }}/actions/artifacts/${{ needs.artifacts.outputs.artifact-id }}/zip"
47+ gh workflow run php.yml -R php/web-downloads -f url="$url"
48+ env :
49+ GITHUB_TOKEN : ${{ secrets.TOKEN }}
You can’t perform that action at this time.
0 commit comments