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

Commit 5a9b100

Browse files
committed
added github action
1 parent 47c70df commit 5a9b100

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
build:
8+
name: Build & Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: '16'
15+
- run: npm install yarn
16+
- run: yarn install
17+
- run: npm install -g pkg
18+
- run: yarn build
19+
- run: cd dist
20+
- run: pkg main.js
21+
- run: mv ./main-linux ./autoadmin-cli-linux
22+
- run: mv ./main-macos ./autoadmin-cli-macos
23+
- run: mv ./main-win.exe ./autoadmin-cli-windows.exe
24+
uses: softprops/action-gh-release@v1
25+
with:
26+
files: |
27+
autoadmin-cli-linux
28+
autoadmin-cli-macos
29+
autoadmin-cli-windows.exe

0 commit comments

Comments
 (0)