-
Notifications
You must be signed in to change notification settings - Fork 21
51 lines (51 loc) · 1.4 KB
/
release.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
name: Release
on:
push:
branches:
- main
jobs:
build_wasm:
name: build for node.js
runs-on: ubuntu-latest
steps:
- uses: mymindstorm/setup-emsdk@v7
- uses: actions/checkout@v2
- run: cmake -E make_directory build
- run: emcmake cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Release
working-directory: build
- run: cmake --build . && cmake --build . --target install
working-directory: build
- name: Archive build result for js
uses: actions/upload-artifact@v2
with:
name: node_lua_with_lrdb
path: node/bin/node_lua_with_lrdb.*
release:
needs: build_wasm
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Download a node_lua_with_lrdb
uses: actions/download-artifact@v2
with:
name: node_lua_with_lrdb
path: node/bin/
- run: yarn
working-directory: node
- run: yarn bundle
working-directory: node
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn semantic-release
working-directory: node