Skip to content

Commit f4758d9

Browse files
committed
Fix .github/release.yml
1 parent bb31df3 commit f4758d9

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,21 @@ jobs:
5454
- name: Build
5555
run: cd ckb-debugger && cargo build --release --features=stdio
5656
- name: Archive files
57-
run: cp target/release/ckb-debugger ./ && tar -cvzf ckb-debugger-linux-x64.tar.gz ckb-debugger LICENSE
57+
run: |
58+
mkdir dist
59+
cp target/release/ckb-debugger dist
60+
cp LICENSE dist
61+
cd dist && tar -cvzf ckb-debugger-linux-x64.tar.gz ckb-debugger LICENSE
5862
- name: Generate checksum
59-
run: sha256sum ckb-debugger-linux-x64.tar.gz > ckb-debugger-linux-x64-sha256.txt
63+
run: cd dist && sha256sum ckb-debugger-linux-x64.tar.gz > ckb-debugger-linux-x64-sha256.txt
6064
- name: Upload binary
6165
id: upload-release-binary
6266
uses: actions/upload-release-asset@v1
6367
env:
6468
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6569
with:
6670
upload_url: ${{ steps.get_upload_url.outputs.upload_url }}
67-
asset_path: ckb-debugger-linux-x64.tar.gz
71+
asset_path: dist/ckb-debugger-linux-x64.tar.gz
6872
asset_name: ckb-debugger-linux-x64.tar.gz
6973
asset_content_type: application/tar+gzip
7074
- name: Upload checksum
@@ -74,7 +78,7 @@ jobs:
7478
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7579
with:
7680
upload_url: ${{ steps.get_upload_url.outputs.upload_url }}
77-
asset_path: ckb-debugger-linux-x64-sha256.txt
81+
asset_path: dist/ckb-debugger-linux-x64-sha256.txt
7882
asset_name: ckb-debugger-linux-x64-sha256.txt
7983
asset_content_type: text/plain
8084

@@ -99,17 +103,21 @@ jobs:
99103
- name: Build
100104
run: cd ckb-debugger && cargo build --release --features=stdio
101105
- name: Archive files
102-
run: cp target/release/ckb-debugger ./ && tar -cvzf ckb-debugger-macos-x64.tar.gz ckb-debugger LICENSE
106+
run: |
107+
mkdir dist
108+
cp target/release/ckb-debugger dist
109+
cp LICENSE dist
110+
cd dist && tar -cvzf ckb-debugger-linux-x64.tar.gz ckb-debugger LICENSE
103111
- name: Generate checksum
104-
run: shasum -a 256 ckb-debugger-macos-x64.tar.gz > ckb-debugger-macos-x64-sha256.txt
112+
run: cd dist && shasum -a 256 ckb-debugger-macos-x64.tar.gz > ckb-debugger-macos-x64-sha256.txt
105113
- name: Upload binary
106114
id: upload-release-binary
107115
uses: actions/upload-release-asset@v1
108116
env:
109117
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
110118
with:
111119
upload_url: ${{ steps.get_upload_url.outputs.upload_url }}
112-
asset_path: ckb-debugger-macos-x64.tar.gz
120+
asset_path: dist/ckb-debugger-macos-x64.tar.gz
113121
asset_name: ckb-debugger-macos-x64.tar.gz
114122
asset_content_type: application/tar+gzip
115123
- name: Upload checksum
@@ -119,7 +127,7 @@ jobs:
119127
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120128
with:
121129
upload_url: ${{ steps.get_upload_url.outputs.upload_url }}
122-
asset_path: ckb-debugger-macos-x64-sha256.txt
130+
asset_path: dist/ckb-debugger-macos-x64-sha256.txt
123131
asset_name: ckb-debugger-macos-x64-sha256.txt
124132
asset_content_type: text/plain
125133

@@ -143,17 +151,21 @@ jobs:
143151
- name: Build
144152
run: cd ckb-debugger && cargo build --release
145153
- name: Archive files
146-
run: copy target/release/ckb-debugger.exe ./ && tar -cvzf ckb-debugger-windows-x64.tar.gz ckb-debugger.exe LICENSE
154+
run: |
155+
mkdir dist
156+
copy target/release/ckb-debugger.exe dist
157+
copy LICENSE dist
158+
cd dist && tar -cvzf ckb-debugger-windows-x64.tar.gz ckb-debugger.exe LICENSE
147159
- name: Generate checksum
148-
run: Get-FileHash ckb-debugger-windows-x64.tar.gz > ckb-debugger-windows-x64-sha256.txt
160+
run: cd dist && Get-FileHash ckb-debugger-windows-x64.tar.gz > ckb-debugger-windows-x64-sha256.txt
149161
- name: Upload binary
150162
id: upload-release-binary
151163
uses: actions/upload-release-asset@v1
152164
env:
153165
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
154166
with:
155167
upload_url: ${{ steps.get_upload_url.outputs.upload_url }}
156-
asset_path: ckb-debugger-windows-x64.tar.gz
168+
asset_path: dist/ckb-debugger-windows-x64.tar.gz
157169
asset_name: ckb-debugger-windows-x64.tar.gz
158170
asset_content_type: application/tar+gzip
159171
- name: Upload checksum
@@ -163,6 +175,6 @@ jobs:
163175
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
164176
with:
165177
upload_url: ${{ steps.get_upload_url.outputs.upload_url }}
166-
asset_path: ckb-debugger-windows-x64-sha256.txt
178+
asset_path: dist/ckb-debugger-windows-x64-sha256.txt
167179
asset_name: ckb-debugger-windows-x64-sha256.txt
168180
asset_content_type: text/plain

0 commit comments

Comments
 (0)