1212 stack : ["2.15.7"]
1313
1414 steps :
15- - name : Get the version
16- id : get_version
17- run : ' echo ::set-output name=version::${GITHUB_REF#refs/tags/}'
18-
1915 - uses : actions/checkout@v2
2016
2117 - uses : haskell-actions/setup@v2
@@ -44,14 +40,12 @@ jobs:
4440 - name : Build artifact
4541 if : startsWith(github.ref, 'refs/tags')
4642 run : make artifact
47- env :
48- PATAT_TAG : ${{ steps.get_version.outputs.version }}
4943
50- - uses : actions/upload-artifact@v2
44+ - uses : actions/upload-artifact@v4
5145 if : startsWith(github.ref, 'refs/tags')
5246 with :
5347 path : artifacts/*
54- name : artifacts
48+ name : artifacts-${{ runner.os }}
5549
5650 release :
5751 name : Release
@@ -60,41 +54,15 @@ jobs:
6054 if : startsWith(github.ref, 'refs/tags')
6155
6256 steps :
63- - name : Get the version
64- id : get_version
65- run : ' echo ::set-output name=version::${GITHUB_REF#refs/tags/}'
66-
6757 - uses : actions/download-artifact@v4
6858 with :
69- name : artifacts
59+ pattern : artifacts-*
7060
71- - name : Display structure of downloaded files
72- run : ls -R
73-
74- - uses : actions/create-release@v1
75- id : create_release
76- env :
77- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
78- with :
79- tag_name : ${{ steps.get_version.outputs.version }}
80- release_name : ${{ steps.get_version.outputs.version }}
81-
82- - name : Upload Linux Asset
83- uses : actions/upload-release-asset@v1
84- env :
85- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
86- with :
87- upload_url : ${{ steps.create_release.outputs.upload_url }}
88- asset_path : ./stylish-haskell-${{ steps.get_version.outputs.version }}-linux-x86_64.tar.gz
89- asset_name : stylish-haskell-${{ steps.get_version.outputs.version }}-linux-x86_64.tar.gz
90- asset_content_type : application/gzip
61+ - run : ls -R
62+ - run : ' sha256sum artifacts-*/*'
9163
92- - name : Upload MacOS Asset
93- uses : actions/upload-release-asset@v1
64+ - uses : softprops/action-gh-release@v1
9465 env :
9566 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9667 with :
97- upload_url : ${{ steps.create_release.outputs.upload_url }}
98- asset_path : ./stylish-haskell-${{ steps.get_version.outputs.version }}-darwin-x86_64.zip
99- asset_name : stylish-haskell-${{ steps.get_version.outputs.version }}-darwin-x86_64.zip
100- asset_content_type : application/zip
68+ files : ' artifacts-*/stylish-haskell-*'
0 commit comments