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:
119
119
else
120
120
gh release upload pecl $extension-${{ inputs.extension-ref }}.zip -R ${{ github.repository }} --clobber
121
121
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 6
6
php-version :
7
7
description : ' PHP version to build'
8
8
required : true
9
+
9
10
jobs :
10
11
php :
11
12
strategy :
27
28
artifacts :
28
29
runs-on : ubuntu-latest
29
30
needs : php
31
+ outputs :
32
+ artifact-id : ${{ steps.artifacts.outputs.artifact-id }}
30
33
steps :
31
34
- name : Upload artifacts
32
35
uses : actions/upload-artifact/merge@v4
36
+ id : artifacts
33
37
with :
34
38
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