Skip to content

Commit aaa8a76

Browse files
committed
fleshing out better tools and testing
1 parent 5c806ef commit aaa8a76

File tree

6 files changed

+91
-211
lines changed

6 files changed

+91
-211
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
- run: npm test
1919
- run: npm run build
2020
- run: npm run release
21+
- run: mkdir -p dist/linux && mv dist/tplight-linux dist/linux/tplight
22+
- run: mkdir -p dist/macos && mv dist/tplight-macos dist/macos/tplight
23+
- run: mkdir -p dist/windows && mv dist/tplight-win.exe dist/windows/tplight.exe
2124

2225
- name: Publish on NPM
2326
uses: JS-DevTools/npm-publish@v1
@@ -29,27 +32,27 @@ jobs:
2932
with:
3033
type: 'zip'
3134
filename: 'tplight-windows.zip'
32-
directory: dist
33-
path: tplight-win.exe
35+
directory: dist/windows
36+
path: tplight.exe
3437

3538
- name: Release Mac (intel 64)
3639
uses: thedoctor0/zip-release@master
3740
with:
3841
type: 'zip'
3942
filename: 'tplight-macos-i64.zip'
40-
directory: dist
41-
path: tplight-macos
43+
directory: dist/macos
44+
path: tplight
4245

4346
- name: Release Linux (intel 64)
4447
uses: thedoctor0/zip-release@master
4548
with:
4649
type: 'zip'
4750
filename: 'tplight-linux-i64.zip'
48-
directory: dist
49-
path: tplight-linux
51+
directory: dist/linux
52+
path: tplight
5053

5154
- name: Publish Releases
5255
uses: ncipollo/release-action@v1
5356
with:
54-
artifacts: "dist/*.zip"
57+
artifacts: "dist/**/*.zip"
5558
token: ${{ secrets.GITHUB_TOKEN }}

package-lock.json

Lines changed: 28 additions & 197 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)