@@ -11,14 +11,11 @@ jobs:
11
11
- name : Create Release
12
12
id : create-release
13
13
if : startsWith(github.ref, 'refs/tags/v')
14
- uses : actions/create-release@v1
15
- env :
16
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
14
+ uses : ncipollo/release-action@v1
17
15
with :
18
- tag_name : ${{ github.ref }}
19
- release_name : Release ${{ github.ref }}
20
- draft : false
16
+ omitBody : true
21
17
prerelease : true
18
+ token : ${{ secrets.GITHUB_TOKEN }}
22
19
build :
23
20
runs-on : ${{ matrix.os }}
24
21
needs : create-release
@@ -51,29 +48,30 @@ jobs:
51
48
if : contains(matrix.platform, 'darwin')
52
49
- name : Build ${{ matrix.platform }}
53
50
id : build-release
54
- run : |
55
- ./build.sh $(cat LIBVIPS_VERSION) ${{ matrix.platform }}
56
- echo "::set-output name=asset_file_name_gz::libvips-$(cat LIBVIPS_VERSION)-${{ matrix.platform }}.tar.gz"
57
- echo "::set-output name=asset_file_name_br::libvips-$(cat LIBVIPS_VERSION)-${{ matrix.platform }}.tar.br"
51
+ run : ./build.sh $(cat LIBVIPS_VERSION) ${{ matrix.platform }}
58
52
- name : Upload Release Asset (.tar.gz)
59
53
id : upload-release-asset-gz
60
54
if : startsWith(github.ref, 'refs/tags/v')
61
- uses : actions/upload-release-asset@v1
62
- env :
63
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55
+ uses : ncipollo/release-action@v1
64
56
with :
65
- upload_url : ${{ needs.create-release.outputs.upload_url }}
66
- asset_path : ${{ steps.build-release.outputs.asset_file_name_gz }}
67
- asset_name : ${{ steps.build-release.outputs.asset_file_name_gz }}
68
- asset_content_type : application/gzip
57
+ allowUpdates : true
58
+ artifact : libvips-*-${{ matrix.platform }}.tar.gz
59
+ artifactContentType : application/gzip
60
+ artifactErrorsFailBuild : true
61
+ omitBodyDuringUpdate : true
62
+ omitNameDuringUpdate : true
63
+ prerelease : true
64
+ token : ${{ secrets.GITHUB_TOKEN }}
69
65
- name : Upload Release Asset (.tar.br)
70
66
id : upload-release-asset-br
71
67
if : startsWith(github.ref, 'refs/tags/v')
72
- uses : actions/upload-release-asset@v1
73
- env :
74
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68
+ uses : ncipollo/release-action@v1
75
69
with :
76
- upload_url : ${{ needs.create-release.outputs.upload_url }}
77
- asset_path : ${{ steps.build-release.outputs.asset_file_name_br }}
78
- asset_name : ${{ steps.build-release.outputs.asset_file_name_br }}
79
- asset_content_type : application/x-brotli
70
+ allowUpdates : true
71
+ artifact : libvips-*-${{ matrix.platform }}.tar.br
72
+ artifactContentType : application/x-brotli
73
+ artifactErrorsFailBuild : true
74
+ omitBodyDuringUpdate : true
75
+ omitNameDuringUpdate : true
76
+ prerelease : true
77
+ token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments