Skip to content

Commit cc15782

Browse files
authored
Create package.yml
1 parent 75a9e2c commit cc15782

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/package.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Package
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
RUST_BACKTRACE: full
11+
12+
jobs:
13+
package:
14+
name: package
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: Update submodules
19+
run: git submodule update --init
20+
- name: Build contract
21+
run: make all-via-docker
22+
- uses: dev-drprasad/[email protected]
23+
with:
24+
keep_latest: 0
25+
delete_tag_pattern: scripts
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
- name: Create Release
29+
id: create_release
30+
uses: actions/create-release@v1
31+
env:
32+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
33+
with:
34+
tag_name: scripts
35+
release_name: Release CKB Production Scripts
36+
draft: false
37+
prerelease: false
38+
- name: upload-acp-file
39+
uses: actions/upload-release-asset@v1
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
with:
43+
asset_path: ${{ github.workspace }}/build/anyone_can_pay
44+
asset_name: anyone_can_pay
45+
upload_url: ${{ steps.create_release.outputs.upload_url }}
46+
asset_content_type: application/octet-stream
47+
- name: upload-omni_lock-file
48+
uses: actions/upload-release-asset@v1
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
with:
52+
asset_path: ${{ github.workspace }}/build/omni_lock
53+
asset_name: omni_lock
54+
upload_url: ${{ steps.create_release.outputs.upload_url }}
55+
asset_content_type: application/octet-stream
56+
- name: upload-sudt-file
57+
uses: actions/upload-release-asset@v1
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
with:
61+
asset_path: ${{ github.workspace }}/build/simple_udt
62+
asset_name: simple_udt
63+
upload_url: ${{ steps.create_release.outputs.upload_url }}
64+
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)