File tree Expand file tree Collapse file tree 2 files changed +89
-0
lines changed Expand file tree Collapse file tree 2 files changed +89
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build 
2+ 
3+ on :
4+   push :
5+     branches :
6+       - main 
7+   pull_request :
8+     branches :
9+       - ' *' 
10+ 
11+ jobs :
12+   build :
13+     strategy :
14+       fail-fast : false 
15+       matrix :
16+         os : [ubuntu-latest, windows-latest, macos-latest] 
17+     runs-on : ${{ matrix.os }} 
18+     name : " Build - ${{ matrix.os }}" 
19+ 
20+     steps :
21+     - uses : actions/checkout@v4 
22+ 
23+     - name : Set up Node.js 
24+       uses : actions/setup-node@v4 
25+       with :
26+         node-version : ' 20' 
27+ 
28+     - uses : actions/setup-python@v5 
29+       with :
30+         python-version : ' 3.10' 
31+ 
32+     - name : Install Python setup tools 
33+       run : | 
34+           pip install setuptools 
35+ 
36+ name : Install dependencies 
37+       run : npm install 
38+ 
39+     - name : Build 
40+       run : npm run build 
41+ 
42+     - name : Test 
43+       run : npm test 
Original file line number Diff line number Diff line change 1+ name : Release 
2+ 
3+ on :
4+   push :
5+     tags :
6+       - ' v*' 
7+ 
8+ jobs :
9+   build :
10+     strategy :
11+       fail-fast : false 
12+       matrix :
13+         os : [ubuntu-latest, windows-latest, macos-latest] 
14+     runs-on : ${{ matrix.os }} 
15+     name : " Release - ${{ matrix.os }}" 
16+ 
17+     steps :
18+     - uses : actions/checkout@v4 
19+ 
20+     - name : Set up Node.js 
21+       uses : actions/setup-node@v4 
22+       with :
23+         node-version : ' 20' 
24+ 
25+     - uses : actions/setup-python@v5 
26+       with :
27+         python-version : ' 3.10' 
28+     - name : Install Python setup tools 
29+       run : | 
30+           pip install setuptools 
31+ 
32+ name : Install dependencies 
33+       run : npm install 
34+ 
35+     - name : Build 
36+       run : npm run build 
37+ 
38+     - name : Create release 
39+       uses : softprops/action-gh-release@v2 
40+       with :
41+         files : dist/* 
42+         tag_name : ${{ github.ref }} 
43+         name : ${{ github.ref }} 
44+         body : | 
45+           This is a release for version ${{ github.ref }}. 
46+           It contains the compiled files from the build process. 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments