Skip to content

Commit e58fb14

Browse files
committed
Create release.yml
1 parent e30ed05 commit e58fb14

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build and release
2+
on:
3+
push:
4+
tags:
5+
- 'v*.*.*'
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
- name: Use Node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: 'lts/*'
16+
- run: yarn --frozen-lockfile
17+
- run: npm install --global pkg
18+
- name: Build
19+
run: pkg index.js --output sesame-daemon --targets linux,macos,win
20+
- name: Release
21+
uses: softprops/action-gh-release@v1
22+
with:
23+
files: |
24+
sesame-daemon-linux
25+
sesame-daemon-macos
26+
sesame-daemon-win.exe
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)