Skip to content

Commit

Permalink
Bump version with release setup for other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
xxuejie committed Jan 10, 2024
1 parent 6234420 commit 3f99c08
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 70 deletions.
52 changes: 50 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ on:
- "*"

jobs:
node-script-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
- run: npm run build
- run: cp cli-dist.js ckb-transaction-dumper
- run: tar czf ckb-transaction-dumper_v${{ github.ref_name }}_node_executable_script.tar.gz ckb-transaction-dumper README.md LICENSE
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ckb-transaction-dumper_v${{ github.ref_name }}_node_executable_script.tar.gz

linux-release:
runs-on: ubuntu-latest
steps:
Expand All @@ -16,8 +32,40 @@ jobs:
- run: npm install
- run: npm run build
- run: npx pkg --options "no-warnings" -t node18-linux-x64 cli-dist.js -o ckb-transaction-dumper
- run: tar czf ckb-transaction-dumper_${{ github.ref_name }}_linux_x86_64.tar.gz ckb-transaction-dumper README.md LICENSE
- run: tar czf ckb-transaction-dumper_v${{ github.ref_name }}_linux_x86_64.tar.gz ckb-transaction-dumper README.md LICENSE
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ckb-transaction-dumper_v${{ github.ref_name }}_linux_x86_64.tar.gz

macos-release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
- run: npm run build
- run: npx pkg --options "no-warnings" -t node18-macos-x64 cli-dist.js -o ckb-transaction-dumper
- run: tar czf ckb-transaction-dumper_v${{ github.ref_name }}_macos_x86_64.tar.gz ckb-transaction-dumper README.md LICENSE
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ckb-transaction-dumper_v${{ github.ref_name }}_macos_x86_64.tar.gz

macos-release:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
- run: npm run build
- run: npx pkg --options "no-warnings" -t node18-win-x64 cli-dist.js -o ckb-transaction-dumper
- run: tar czf ckb-transaction-dumper_v${{ github.ref_name }}_win_x86_64.tar.gz ckb-transaction-dumper README.md LICENSE
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ckb-transaction-dumper_${{ github.ref_name }}_linux_x86_64.tar.gz
files: ckb-transaction-dumper_v${{ github.ref_name }}_win_x86_64.tar.gz
65 changes: 0 additions & 65 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ckb-transaction-dumper",
"version": "0.3.1",
"version": "0.3.2",
"description": "CKB Transaction Dumper, used together with ckb-standalone-debugger",
"bin": {
"ckb-transaction-dumper": "./cli-dist.js"
Expand Down

0 comments on commit 3f99c08

Please sign in to comment.