12
12
stack : ["2.15.7"]
13
13
14
14
steps :
15
- - name : Get the version
16
- id : get_version
17
- run : ' echo ::set-output name=version::${GITHUB_REF#refs/tags/}'
18
-
19
15
- uses : actions/checkout@v2
20
16
21
17
- uses : haskell-actions/setup@v2
@@ -44,14 +40,12 @@ jobs:
44
40
- name : Build artifact
45
41
if : startsWith(github.ref, 'refs/tags')
46
42
run : make artifact
47
- env :
48
- PATAT_TAG : ${{ steps.get_version.outputs.version }}
49
43
50
- - uses : actions/upload-artifact@v2
44
+ - uses : actions/upload-artifact@v4
51
45
if : startsWith(github.ref, 'refs/tags')
52
46
with :
53
47
path : artifacts/*
54
- name : artifacts
48
+ name : artifacts-${{ runner.os }}
55
49
56
50
release :
57
51
name : Release
@@ -60,41 +54,15 @@ jobs:
60
54
if : startsWith(github.ref, 'refs/tags')
61
55
62
56
steps :
63
- - name : Get the version
64
- id : get_version
65
- run : ' echo ::set-output name=version::${GITHUB_REF#refs/tags/}'
66
-
67
57
- uses : actions/download-artifact@v4
68
58
with :
69
- name : artifacts
59
+ pattern : artifacts-*
70
60
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-*/*'
91
63
92
- - name : Upload MacOS Asset
93
- uses : actions/upload-release-asset@v1
64
+ - uses : softprops/action-gh-release@v1
94
65
env :
95
66
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
96
67
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