-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (50 loc) · 1.42 KB
/
build.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
name: Build and Package .dapp
on:
push:
branches:
- mainnet
- workflow-test
pull_request:
branches:
- mainnet
- workflow-test
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js environment
uses: actions/setup-node@v2
with:
node-version: '16' # Use the version of Node.js required by your project
- name: Install dependencies
run: yarn install
- name: Build the project
run: yarn build
- name: Create folder structure
run: mkdir -p BeamX-DAO-Voting/app
- name: Copy build files
run: cp -r html/* BeamX-DAO-Voting/app/
- name: Create manifest.json
run: |
echo '{
"name": "BeamX DAO Voting",
"description": "Voting on Beam community proposals",
"icon": "localapp/app/logo.svg",
"url": "localapp/app/index.html",
"version": "1.0.0",
"api_version": "7.0",
"min_api_version": "7.0",
"guid": "c26538f5ce9e410b89c1fd0dff783f97"
}' > BeamX-DAO-Voting/manifest.json
- name: Package into .dapp file
run: |
cd BeamX-DAO-Voting
zip -r ../BeamX-DAO-Voting.dapp .
cd ..
- name: Upload .dapp file
uses: actions/upload-artifact@v2
with:
name: BeamX-DAO-Voting.dapp
path: BeamX-DAO-Voting.dapp