-
-
Notifications
You must be signed in to change notification settings - Fork 10
59 lines (51 loc) · 1.57 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
on:
push:
tags:
- '*'
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Test & Build
uses: actions/setup-node@v1
with:
node-version: 16
- run: npm ci
- run: npm test
- run: npm run build
- run: npm run release
- run: mkdir -p dist/linux && mv dist/release/rawproto-linux dist/linux/rawproto
- run: mkdir -p dist/macos && mv dist/release/rawproto-macos dist/macos/rawproto
- run: mkdir -p dist/windows && mv dist/release/rawproto-win.exe dist/windows/rawproto.exe
- name: Publish on NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
- name: Release Windows
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: 'rawproto-windows.zip'
directory: dist/windows
path: rawproto.exe
- name: Release Mac (intel 64)
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: 'rawproto-macos-i64.zip'
directory: dist/macos
path: rawproto
- name: Release Linux (intel 64)
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: 'rawproto-linux-i64.zip'
directory: dist/linux
path: rawproto
- name: Publish Releases
uses: ncipollo/release-action@v1
with:
artifacts: "dist/**/*.zip"
token: ${{ secrets.GITHUB_TOKEN }}