Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit 4094b32

Browse files
committed
fixed github actions
1 parent fb5cbc2 commit 4094b32

1 file changed

Lines changed: 31 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,40 @@ jobs:
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v2
13-
- name: SetUp Node and dependencies
13+
14+
- name: Setup Node
1415
uses: actions/setup-node@v2
1516
with:
1617
node-version: '16'
17-
- run: npm install yarn
18-
- run: yarn install
19-
- run: npm install -g pkg
20-
- run: yarn build
21-
- run: cd dist
22-
- run: pkg main.js
23-
- run: mv ./main-linux ./autoadmin-cli-linux
24-
- run: mv ./main-macos ./autoadmin-cli-macos
25-
- run: mv ./main-win.exe ./autoadmin-cli-windows.exe
18+
19+
- name: Install yarn
20+
run: npm install yarn
21+
22+
- name: Install dependencies
23+
run: yarn install
24+
25+
- name: Install vercel/pkg
26+
run: npm install -g pkg
27+
28+
- name: Build project
29+
run: yarn build
30+
31+
- name: Enter into dist
32+
run: cd dist
33+
34+
- name: Build binaries
35+
run: pkg main.js
36+
37+
- name: Renave linux binary
38+
run: mv ./main-linux ./autoadmin-cli-linux
39+
40+
- name: Renave macos binary
41+
run: mv ./main-macos ./autoadmin-cli-macos
42+
43+
- name: Renave windows binary
44+
run: mv ./main-win.exe ./autoadmin-cli-windows.exe
45+
46+
- name: Publish release
2647
uses: softprops/action-gh-release@v1
2748
with:
2849
files: |

0 commit comments

Comments
 (0)