File tree Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Original file line number Diff line number Diff line change 3
3
- push
4
4
- repository_dispatch
5
5
jobs :
6
- package :
6
+ build :
7
7
runs-on : ${{ matrix.operating-system }}
8
8
strategy :
9
9
fail-fast : false
59
59
run : php -v && php -m
60
60
61
61
- name : Upload
62
+ id : upload
62
63
env :
63
64
BINTRAY_KEY : ${{ SECRETS.BINTRAY_KEY }}
64
65
BINTRAY_USER : shivammathur
94
95
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -T php_"$VERSION"+ubuntu"$DISTRIB_RELEASE".tar.zst https://api.bintray.com/content/shivammathur/php/"$VERSION"-linux/"$VERSION"+ubuntu"$DISTRIB_RELEASE"/php_"$VERSION"+ubuntu"$DISTRIB_RELEASE".tar.zst || true
95
96
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -T php_"$SEMVER"+ubuntu"$DISTRIB_RELEASE".tar.zst https://api.bintray.com/content/shivammathur/php/"$VERSION"-linux/"$VERSION"+ubuntu"$DISTRIB_RELEASE"/php_"$SEMVER"+ubuntu"$DISTRIB_RELEASE".tar.zst || true
96
97
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -X POST https://api.bintray.com/content/"$BINTRAY_USER"/"$BINTRAY_REPO"/"$VERSION"-linux/"$VERSION"+ubuntu"$DISTRIB_RELEASE"/publish || true
97
- fi
98
+ fi
99
+ mkdir builds
100
+ sudo mv *.zst ./builds
101
+ - name : Upload Artifact
102
+ uses : actions/upload-artifact@v2
103
+ with :
104
+ name : ${{ matrix.php-versions }}
105
+ path : builds
106
+ release :
107
+ runs-on : ubuntu-latest
108
+ needs : build
109
+ steps :
110
+ - uses : actions/checkout@v2
111
+ - run : mkdir builds
112
+ - uses : actions/download-artifact@v2
113
+ with :
114
+ path : builds
115
+ - name : Release
116
+ run : |
117
+ set -x
118
+ curl -sLO https://github.com/php-ubuntu/releases/latest/download/install.sh
119
+ assets=()
120
+ for asset in ./builds/*/*; do
121
+ assets+=("-a" "$asset")
122
+ done
123
+ assets+=("-a" "./install.sh")
124
+ version=$(date '+%Y.%m.%d')
125
+ hub release create "${assets[@]}" -m "$version" "$version"
126
+ env :
127
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments