Skip to content

Commit f736ea2

Browse files
committed
Change github action for making release
1 parent 562d3d6 commit f736ea2

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

.github/workflows/push.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: ESP32 Arduino Libs CI
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
4+
workflow_dispatch: # Manually start a workflow
5+
# push:
6+
# branches:
7+
# - master
8+
# pull_request:
89

910
concurrency:
1011
group: esp-idf-libs-${{github.event.pull_request.number || github.ref}}
@@ -20,13 +21,20 @@ jobs:
2021
target: [esp32]
2122
fail-fast: false
2223
steps:
23-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v3
2425
- name: Install dependencies
2526
run: bash ./tools/prepare-ci.sh
2627
- name: Build Libs for ${{ matrix.target }}
2728
run: bash ./build.sh -t ${{ matrix.target }}
28-
- name: Upload archive
29-
uses: actions/upload-artifact@v1
29+
- name: Release
30+
uses: jason2866/action-gh-release@v1.2
3031
with:
31-
name: artifacts-${{ matrix.target }}
32-
path: dist
32+
tag_name: ${{ github.run_number }}
33+
body_path: release-info.txt
34+
prerelease: true
35+
files: |
36+
dist/framework*
37+
release-info.txt
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+

0 commit comments

Comments
 (0)