-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (58 loc) · 2.03 KB
/
push-main-generate-artifacts.yaml
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
name: Build project check
on:
push:
branches:
- main
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "16"
- name: Checkout war3js_unsafe repository
uses: actions/checkout@v4
with:
repository: kirill-782/war3js_unsafe
path: unsafe
- name: Install unsafe dependencies
run: npm install
working-directory: ./unsafe
- name: Build unsafe
run: npm run build
working-directory: ./unsafe
- name: Checkout current repository
uses: actions/checkout@v4
with:
path: bootstrap
- name: Install dependencies
run: npm install
working-directory: ./bootstrap
- name: Bundle js file
run: npm run bundle
working-directory: ./bootstrap
- name: Bundle types
run: npm run typesgen
working-directory: ./bootstrap
- name: Upload bootstrap.js
uses: actions/upload-artifact@v3
with:
name: bootstrap.js
path: ./bootstrap/build/esbuild/bootstrap.js
- name: Upload natives.d.ts
uses: actions/upload-artifact@v3
with:
name: natives.d.ts
path: ./bootstrap/build/fullTypes/natives.d.ts
- name: Upload constants.d.ts
uses: actions/upload-artifact@v3
with:
name: constants.d.ts
path: ./bootstrap/build/fullTypes/constants.d.ts
- name: Upload bootstrap.d.ts
uses: actions/upload-artifact@v3
with:
name: bootstrap.d.ts
path: ./bootstrap/build/fullTypes/bootstrap.d.ts