4
4
push :
5
5
branches :
6
6
- master
7
- pull_request :
8
7
9
8
jobs :
10
-
11
9
build-libs :
12
10
name : Build Arduino Libs
13
11
runs-on : ubuntu-latest
@@ -17,37 +15,24 @@ jobs:
17
15
run : bash ./tools/prepare-ci.sh
18
16
- name : Build Arduino Libs
19
17
run : bash ./build.sh
20
- - name : Upload archive
18
+ - name : Upload artifact
21
19
uses : actions/upload-artifact@v1
22
20
with :
23
21
name : esp32-arduino
24
22
path : dist
25
- - name : Delete all files and folders
26
- run : |
27
- rm -rf *
28
- git config --local user.name "esp32-arduino-lib-builder"
29
- git checkout framework-arduinoespressif32
30
- - name : Display files from branch ckeckout
31
- run : ls -R
32
- - uses : actions/download-artifact@v2
23
+ - name : Download new builded framework
24
+ uses : actions/download-artifact@v2
33
25
with :
34
26
name : esp32-arduino
35
27
path : ./esp32-arduino
36
- - name : Display downloaded files
37
- run : ls -R
38
- working-directory : ./esp32-arduino
39
- - name : Commit files # transfer the builded files into the repository
40
- run : |
41
- cd esp32-arduino
42
- cp -Rf ./* ../
43
- cd ..
44
- rm -rf esp32-arduino
45
- git rm -r --cached .
46
- git add -f *.*
47
- git commit -m "esp32-arduino lib v4.4"
48
- - name : Push changes # push the files to branch framework-arduinoespressif32
49
- uses : ad-m/github-push-action@master
28
+ - name : Display files from folder esp32-arduino
29
+ run : ls esp32-arduino/*
30
+ - name : Release
31
+ uses : softprops/action-gh-release@v1
32
+ # if: startsWith(github.ref, 'refs/tags/')
50
33
with :
51
- github_token : ${{ secrets.GITHUB_TOKEN }}
52
- branch : ' framework-arduinoespressif32'
53
- force : true
34
+ tag_name : ${{ github.run_number }}
35
+ prerelease : true
36
+ files : esp32-arduino/framework*
37
+ env :
38
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments