File tree Expand file tree Collapse file tree 4 files changed +5
-32
lines changed
Expand file tree Collapse file tree 4 files changed +5
-32
lines changed Original file line number Diff line number Diff line change 11name : Release on PR or commit
22on :
33 pull_request :
4+ types :
5+ - closed
46 branches : [ "master" ]
57 paths-ignore :
68 - ' readme.md'
911
1012jobs :
1113 build :
12- if : github.repository == ‘ dbuezas/lgt8fx’
14+ if : github.repository == ' dbuezas/lgt8fx' && github.event.pull_request.merged == true
1315 runs-on : ubuntu-latest
1416 permissions :
1517 contents : write
Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ const json = JSON.parse(fs.readFileSync(package));
99const { platforms } = json . packages [ 0 ] ;
1010const [ major , minor , patch ] = platforms [ 0 ] . version . split ( "." ) ;
1111
12- const newVersion = [ major , minor , parseFloat ( patch ) + 1 ] . join ( "." ) ;
12+ // const newVersion = [major, minor, parseFloat(patch) + 1].join(".");
13+ const newVersion = "2.0.0" ;
1314const archiveFileName = `${ folder } -${ newVersion } .zip` ;
1415execSync ( `zip -r ${ archiveFileName } ${ folder } ` ) ;
1516console . warn ( `zipped ${ archiveFileName } ` ) ;
Original file line number Diff line number Diff line change 88 "online" : " https://github.com/dbuezas/lgt8fx"
99 },
1010 "platforms" : [
11- {
12- "name" : " LGT8fx Boards" ,
13- "architecture" : " avr" ,
14- "version" : " 1.0.7" ,
15- "category" : " lgt8fx" ,
16- "url" : " https://github.com/dbuezas/lgt8fx/releases/download/v1.0.7/lgt8f-1.0.7.zip" ,
17- "archiveFileName" : " lgt8f-1.0.7.zip" ,
18- "checksum" : " SHA-256:e69c27206c57d0d182e8506161cdf77eeb65be1854a794c4b63fe74b23ae09ce" ,
19- "size" : " 629338" ,
20- "help" : {
21- "online" : " https://github.com/dbuezas/lgt8fx/issues"
22- },
23- "boards" : [
24- {
25- "name" : " LGT8F328P-LQFP32 MiniEVB"
26- },
27- {
28- "name" : " LGT8F328P-LQFP48 MiniEVB"
29- },
30- {
31- "name" : " LGT8F328P-LQFP32 wemos-TTGO-XI"
32- },
33- {
34- "name" : " LGT8F328P-SSOP20"
35- },
36- {
37- "name" : " LGT8F328D-LQFP32"
38- }
39- ]
40- },
4111 {
4212 "name" : " LGT8fx Boards" ,
4313 "architecture" : " avr" ,
You can’t perform that action at this time.
0 commit comments