This repository was archived by the owner on Aug 9, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
50 lines (45 loc) · 1.32 KB
/
windows.yml
File metadata and controls
50 lines (45 loc) · 1.32 KB
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
on:
release:
types: [created]
jobs:
build:
runs-on: windows-2016
steps:
- uses: actions/setup-node@master
with:
node-version: "16.x"
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: "Setup NASM for windows"
uses: ilammy/setup-nasm@v1
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Build Qode binary
run: node build.js
env:
SYNC_GIT_SUBMODULE: 1
- name: Compress files
uses: a7ul/tar-action@v1.0.2
id: compress
with:
command: c
cwd: ./node/out/Release
files: |
./qode.exe
./qode.lib
./qode.exp
outPath: qode-win32-x64-${{github.event.release.tag_name}}.tar.gz
- uses: actions/upload-artifact@v1
with:
name: qode-win32-x64-${{github.event.release.tag_name}}.tar.gz
path: qode-win32-x64-${{github.event.release.tag_name}}.tar.gz
- name: Release
uses: softprops/action-gh-release@master
with:
files: qode-win32-x64-${{github.event.release.tag_name}}.tar.gz
tag_name: ${{ github.event.release.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}