|
1 |
| -name: Remote Trigger |
| 1 | +name: ESP32 Arduino master branch |
2 | 2 |
|
3 |
| -on: repository_dispatch |
| 3 | +on: |
| 4 | + workflow_dispatch: # Manually start a workflow |
| 5 | +# push: |
| 6 | +# branches: master |
| 7 | +# paths-ignore: |
| 8 | +# - '.github/**' # Ignore changes towards the .github directory |
4 | 9 |
|
5 | 10 | jobs:
|
6 |
| - run: |
7 |
| - name: Dispatch Event |
| 11 | + build-libs: |
| 12 | + name: Build Arduino Libs |
8 | 13 | runs-on: ubuntu-latest
|
9 | 14 | steps:
|
10 |
| - - uses: actions/checkout@v1 |
11 |
| - - name: Install dependencies |
12 |
| - run: bash ./tools/prepare-ci.sh |
13 |
| - - name: Handle Event |
14 |
| - env: |
15 |
| - GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }} |
16 |
| - GIT_AUTHOR_EMAIL: ${{ secrets.PUSH_EMAIL }} |
17 |
| - GIT_COMMITTER_EMAIL: ${{ secrets.PUSH_EMAIL }} |
18 |
| - run: bash ./tools/repository_dispatch.sh |
19 |
| - - name: Upload archive |
20 |
| - uses: actions/upload-artifact@v1 |
21 |
| - with: |
22 |
| - name: artifacts |
23 |
| - path: dist |
| 15 | + - uses: actions/checkout@v2 |
| 16 | + - uses: actions/setup-python@v2 |
| 17 | + with: |
| 18 | + python-version: "3.8.10" |
| 19 | + architecture: "x64" |
| 20 | + - name: Install dependencies |
| 21 | + run: bash ./tools/prepare-ci.sh |
| 22 | + - name: Build Arduino Libs |
| 23 | + run: bash ./build.sh |
| 24 | + - name: Upload artifact |
| 25 | + uses: actions/upload-artifact@v2 |
| 26 | + with: |
| 27 | + name: esp32-arduino |
| 28 | + path: dist |
| 29 | + - name: Download new builded framework |
| 30 | + uses: actions/download-artifact@v2 |
| 31 | + with: |
| 32 | + name: esp32-arduino |
| 33 | + path: ./esp32-arduino |
| 34 | + - name: Display files from folder esp32-arduino |
| 35 | + run: ls esp32-arduino/* |
| 36 | + - name: Release |
| 37 | + uses: softprops/action-gh-release@v1 |
| 38 | + #if: startsWith(github.ref, 'refs/tags/') |
| 39 | + with: |
| 40 | + tag_name: ${{ github.run_number }} |
| 41 | + prerelease: true |
| 42 | + files: esp32-arduino/framework* |
| 43 | + env: |
| 44 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments