@@ -37,13 +37,13 @@ jobs:
37
37
echo "
38
38
## TODO: EDIT ME BEFORE PUBLISH
39
39
40
- [link-tools ]: ${{ github.event.repository.html_url }}/actions?query=workflow%3A%22Build+Release+Tools %22
41
- [link-ext]: ${{ github.event.repository.html_url }}/actions?query=workflow%3A%22Build+Release +Ext%22
42
- [badge-tools ]: ${{ github.event.repository.html_url }}/workflows/Build%20Release%20Tools /badge.svg?event=workflow_run (tools workflow)
43
- [badge-ext]: ${{ github.event.repository.html_url }}/workflows/Build%20Release %20Ext/badge.svg?event=workflow_run (ext workflow)
40
+ [link-main ]: ${{ github.event.repository.html_url }}/actions?query=workflow%3A%22Release %22
41
+ [link-ext]: ${{ github.event.repository.html_url }}/actions?query=workflow%3A%22Release +Ext%22
42
+ [badge-main ]: ${{ github.event.repository.html_url }}/workflows/Release /badge.svg?event=workflow_run (main workflow)
43
+ [badge-ext]: ${{ github.event.repository.html_url }}/workflows/Release %20Ext/badge.svg?event=workflow_run (ext workflow)
44
44
45
45
__Please wait build completions for:__
46
- - [![Build Release Tools][badge-tools ]][link-tools ]
46
+ - [![Build Release Tools][badge-main ]][link-main ]
47
47
- [![Build Release Ext][badge-ext]][link-ext]
48
48
49
49
- - -
52
52
53
53
$RESULT_LOG_ACT
54
54
55
- __Changelog ${TAG_SECOND}__…${TAG_FIRST}
55
+ __ ${TAG_SECOND}__…${TAG_FIRST}
56
56
57
57
$RESULT_LOG_POST
58
58
68
68
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
69
69
with :
70
70
draft : true
71
- prerelease : true
71
+ prerelease : false
72
72
tag_name : ${{ github.ref }}
73
73
release_name : ${{ github.ref }}
74
74
body_path : ${{ steps.changelog.outputs.file }}
@@ -91,13 +91,15 @@ jobs:
91
91
build :
92
92
needs : release
93
93
name : Build
94
- runs-on : ${{ matrix.os }}
94
+ runs-on : ${{ matrix.os.value }}
95
95
strategy :
96
96
fail-fast : false
97
97
matrix :
98
98
os :
99
- - macos-latest
100
- - ubuntu-latest
99
+ - name : macos
100
+ value : macos-latest
101
+ - name : ubuntu
102
+ value : ubuntu-latest
101
103
dove :
102
104
- 1.3.2
103
105
defaults :
@@ -136,6 +138,9 @@ jobs:
136
138
target : wasm32-unknown-unknown
137
139
override : false
138
140
141
+ - name : Restore Rust cache
142
+ uses : Swatinem/rust-cache@v1
143
+
139
144
- name : Get Dove
140
145
uses : pontem-network/get-dove@main
141
146
with :
@@ -146,12 +151,43 @@ jobs:
146
151
- name : Build
147
152
run : cargo +${{ steps.rust.outputs.version }} build --release
148
153
149
- - name : Upload
154
+ - name : Upload Node
150
155
uses : actions/upload-release-asset@v1
151
156
env :
152
157
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
153
158
with :
154
159
upload_url : ${{ needs.release.outputs.upload_url }}
155
160
asset_path : target/release/pontem
156
- asset_name : pontem-${{ matrix.os }}-${{ steps.build-info.outputs.arch }}
161
+ asset_name : pontem-${{ matrix.os.name }}-${{ steps.build-info.outputs.arch }}
157
162
asset_content_type : application/octet-stream
163
+
164
+ - name : Upload Runtime
165
+ if : matrix.os.name == 'ubuntu'
166
+ uses : actions/upload-release-asset@v1
167
+ env :
168
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
169
+ with :
170
+ upload_url : ${{ needs.release.outputs.upload_url }}
171
+ asset_path : target/release/wbuild/pontem-runtime/target/wasm32-unknown-unknown/release/pontem_runtime.wasm
172
+ asset_name : pontem_runtime.wasm
173
+ asset_content_type : application/wasm
174
+
175
+ - name : Upload Runtime Compact
176
+ if : matrix.os.name == 'ubuntu'
177
+ uses : actions/upload-release-asset@v1
178
+ env :
179
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
180
+ with :
181
+ upload_url : ${{ needs.release.outputs.upload_url }}
182
+ asset_path : target/release/wbuild/pontem-runtime/pontem_runtime.compact.wasm
183
+ asset_name : pontem_runtime.compact.wasm
184
+ asset_content_type : application/wasm
185
+ # also
186
+ # wbuild/polkadot-runtime
187
+ # - polkadot_runtime.compact.compressed.wasm
188
+ # - polkadot_runtime.compact.wasm
189
+ # - polkadot_runtime.wasm
190
+ # wbuild/rococo-runtime
191
+ # - rococo_runtime.compact.compressed.wasm
192
+ # - rococo_runtime.compact.wasm
193
+ # - rococo_runtime.wasm
0 commit comments