File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change 33
33
php$ver -r "echo file_get_contents('https://repo.packagist.org/packages.json');"
34
34
env :
35
35
ver : ${{ matrix.php-versions }}
36
- release :
36
+ build :
37
37
name : Update dist
38
38
needs : test
39
39
runs-on : ubuntu-latest
45
45
curl -sSLO http://archive.ubuntu.com/ubuntu/pool/universe/libz/libzstd/zstd_1.4.4+dfsg-3_amd64.deb
46
46
sudo DEBIAN_FRONTEND=noninteractive dpkg -i --force-conflicts zstd_1.4.4+dfsg-3_amd64.deb
47
47
zstd -V
48
+ mkdir builds
48
49
for v in 5.3 5.4 5.5; do
49
50
sudo XZ_OPT=-0 tar cfJ php-$v.tar.xz php-$v
50
51
sudo tar cf - php-$v | zstd --fast=7 > php-$v.tar.zst
53
54
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -T php-$v.tar.xz https://api.bintray.com/content/shivammathur/php/"$v"-linux/"$v"/php-$v.tar.xz || true
54
55
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -T php-$v.tar.zst https://api.bintray.com/content/shivammathur/php/"$v"-linux/"$v"/php-$v.tar.zst || true
55
56
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -X POST https://api.bintray.com/content/"$BINTRAY_USER"/"$BINTRAY_REPO"/"$v"-linux/"$v"/publish || true
57
+ mv php-$v.tar.* ./builds/
56
58
done
57
59
env :
58
60
BINTRAY_KEY : ${{ secrets.bintray_key }}
59
61
BINTRAY_USER : shivammathur
60
62
BINTRAY_REPO : php
63
+ - name : Upload Artifact
64
+ uses : actions/upload-artifact@v2
65
+ with :
66
+ name : builds
67
+ path : builds
68
+ release :
69
+ runs-on : ubuntu-latest
70
+ needs : build
71
+ steps :
72
+ - uses : actions/checkout@v2
73
+ - run : mkdir builds
74
+ - uses : actions/download-artifact@v2
75
+ with :
76
+ path : builds
77
+ - name : Release
78
+ run : |
79
+ set -x
80
+ curl -sLO https://github.com/shivammathur/php5-ubuntu/releases/latest/download/install.sh
81
+ assets=()
82
+ for asset in ./builds/*/*; do
83
+ assets+=("-a" "$asset")
84
+ done
85
+ assets+=("-a" "./install.sh")
86
+ git push -f origin :builds || true
87
+ hub release delete "builds" || true
88
+ hub release create "${assets[@]}" -m "builds" "builds"
89
+ env :
90
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments