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 9
47 lines (42 loc) · 1.26 KB
/
linux.yml
File metadata and controls
47 lines (42 loc) · 1.26 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
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-16.04
steps:
- uses: actions/setup-node@master
with:
node-version: "16.x"
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Ubuntu dependencies
run: sudo apt-get install libgtk-3-dev
- 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
with:
command: c
cwd: ./node/out/Release
files: |
./qode
outPath: qode-linux-x64-${{github.event.release.tag_name}}.tar.gz
- uses: actions/upload-artifact@v1
with:
name: qode-linux-x64-${{github.event.release.tag_name}}.tar.gz
path: qode-linux-x64-${{github.event.release.tag_name}}.tar.gz
- name: Release
uses: softprops/action-gh-release@master
with:
files: qode-linux-x64-${{github.event.release.tag_name}}.tar.gz
tag_name: ${{ github.event.release.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}