-
Notifications
You must be signed in to change notification settings - Fork 3
66 lines (55 loc) · 1.75 KB
/
pkg.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
60
61
62
63
64
65
66
name: Package Release
on:
release:
types: [published]
jobs:
pkg:
runs-on: ubuntu-latest
steps:
- name: Download repository
uses: actions/checkout@master
- name: Extract Lync
run: |
mv Lync/ ../temp/
rm -r *
mv -v ../temp/* ./
- name: Install Node.js
uses: actions/setup-node@master
- name: Install pkg
run: npm install -g pkg
- name: Compile Lync binaries
run: |
pkg index.js -t node18-win,node18-macos,node18-linux
ls
- name: Get release
id: get_release
uses: bruceadams/get-release@main
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload Windows
uses: actions/upload-release-asset@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./index-win.exe
asset_name: lync-windows-${{ steps.get_release.outputs.tag_name }}.exe
asset_content_type: application/octet-stream
- name: Upload MacOS
uses: actions/upload-release-asset@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./index-macos
asset_name: lync-macos-${{ steps.get_release.outputs.tag_name }}
asset_content_type: application/octet-stream
- name: Upload Linux
uses: actions/upload-release-asset@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./index-linux
asset_name: lync-linux-${{ steps.get_release.outputs.tag_name }}
asset_content_type: application/octet-stream