-
Notifications
You must be signed in to change notification settings - Fork 3
99 lines (86 loc) · 3 KB
/
release-zip.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Upload Zip Files to Release
on:
release:
types: [published]
jobs:
release-zip:
runs-on: ubuntu-latest
steps:
- name: Download repository
uses: actions/checkout@master
- name: Install Node
uses: actions/setup-node@main
- name: Install pkg
run: |
npm install -g pkg
- name: Compile Lync
run: |
cd Lync
pkg package.json --no-bytecode --public-packages "*" --public
- name: Zip Lync
run: |
cd Lync
mv lync-win-x64.exe lync.exe
zip lync-windows-x64.zip lync.exe LICENSE.md
mv lync-macos-x64 lync
chmod +x lync
zip lync-macos-x64.zip lync LICENSE.md
mv lync-macos-arm64 lync
chmod +x lync
zip lync-macos-arm64.zip lync LICENSE.md
mv lync-linux-x64 lync
chmod +x lync
zip lync-linux-x64.zip lync LICENSE.md
mv lync-linux-arm64 lync
chmod +x lync
zip lync-linux-arm64.zip lync LICENSE.md
- name: Get release
id: get_release
uses: bruceadams/get-release@main
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload windows-x64
uses: actions/upload-release-asset@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: Lync/lync-windows-x64.zip
asset_name: lync-${{ steps.get_release.outputs.tag_name }}-windows-x64.zip
asset_content_type: application/zip
- name: Upload macos-x64
uses: actions/upload-release-asset@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: Lync/lync-macos-x64.zip
asset_name: lync-${{ steps.get_release.outputs.tag_name }}-macos-x64.zip
asset_content_type: application/zip
- name: Upload macos-arm64
uses: actions/upload-release-asset@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: Lync/lync-macos-arm64.zip
asset_name: lync-${{ steps.get_release.outputs.tag_name }}-macos-arm64.zip
asset_content_type: application/zip
- name: Upload linux-x64
uses: actions/upload-release-asset@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: Lync/lync-linux-x64.zip
asset_name: lync-${{ steps.get_release.outputs.tag_name }}-linux-x64.zip
asset_content_type: application/zip
- name: Upload linux-arm64
uses: actions/upload-release-asset@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: Lync/lync-linux-arm64.zip
asset_name: lync-${{ steps.get_release.outputs.tag_name }}-linux-arm64.zip
asset_content_type: application/zip