@@ -35,15 +35,15 @@ jobs:
35
35
command : build
36
36
args : --release --target ${{matrix.target}}
37
37
38
+ - name : Rename binary
39
+ run : |
40
+ mv target/${{ matrix.target }}/release/parseable Parseable_${{ matrix.target }}
41
+
38
42
- name : Create Artifact
39
43
uses : actions/upload-artifact@v3
40
44
with :
41
45
name : Parseable_${{ matrix.target }}
42
- path : target/${{ matrix.target }}/release/parseable
43
-
44
- - name : Rename binary
45
- run : |
46
- mv target/${{ matrix.target }}/release/parseable Parseable_${{ matrix.target }}
46
+ path : Parseable_${{ matrix.target }}
47
47
48
48
- name : Publish Archive to Release Page
49
49
@@ -71,16 +71,16 @@ jobs:
71
71
- name : Build
72
72
run : cargo build --all --release --target x86_64-pc-windows-msvc
73
73
74
- - name : Create artifact for Windows
75
- uses : actions/upload-artifact@v2
76
- with :
77
- name : Parseable_x86_64-pc-windows-msvc
78
- path : target/x86_64-pc-windows-msvc/release/PARSEABLE.exe
79
-
80
74
- name : Rename binary
81
75
run : |
82
76
mv target/x86_64-pc-windows-msvc/release/PARSEABLE.exe Parseable_x86_64-pc-windows-msvc.exe
83
77
78
+ - name : Create artifact for Windows
79
+ uses : actions/upload-artifact@v2
80
+ with :
81
+ name : Parseable_x86_64-pc-windows-msvc.exe
82
+ path : Parseable_x86_64-pc-windows-msvc.exe
83
+
84
84
- name : Publish Archive to Release Page
85
85
86
86
if : ${{ startsWith(github.ref, 'refs/tags/') }}
@@ -116,16 +116,15 @@ jobs:
116
116
cargo build --release --target ${{ matrix.target }}
117
117
strip target/${{ matrix.target }}/release/Parseable
118
118
119
+ - name : Rename binary
120
+ run : |
121
+ mv target/${{ matrix.target }}/release/Parseable Parseable_${{ matrix.target }}
122
+
119
123
- name : Create artifact
120
124
uses : actions/upload-artifact@v2
121
125
with :
122
126
name : Parseable_${{ matrix.target }}
123
- path : |
124
- target/${{ matrix.target }}/release/Parseable
125
-
126
- - name : Rename binary
127
- run : |
128
- mv target/${{ matrix.target }}/release/Parseable Parseable_${{ matrix.target }}
127
+ path : Parseable_${{ matrix.target }}
129
128
130
129
- name : Publish Archive to Release Page
131
130
@@ -135,3 +134,29 @@ jobs:
135
134
files : Parseable_${{ matrix.target }}
136
135
env :
137
136
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
137
+
138
+ create-checksum :
139
+ runs-on : ubuntu-latest
140
+ needs : [build-linux, build-windows, build-mac]
141
+ steps :
142
+ - name : Download artifacts created
143
+ uses : actions/download-artifact@v3
144
+
145
+ - name : Run shasum command
146
+ run : |
147
+ find . -type f -name "Parseable_*" -exec shasum {} \; | sed 's/.\/.*\///' > checksum.txt
148
+
149
+ - name : Create artifact
150
+ uses : actions/upload-artifact@v2
151
+ with :
152
+ name : checksum.txt
153
+ path : checksum.txt
154
+
155
+ - name : Publish Check Sum to Release Page
156
+
157
+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
158
+ with :
159
+ draft : false
160
+ files : checksum.txt
161
+ env :
162
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments