Skip to content

Commit f2a5e3a

Browse files
committed
feat: modify action
1 parent dcb2dc2 commit f2a5e3a

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

.github/workflows/push.yml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
name: IDF v5.1
1+
name: Build IDF v5.1
22
on:
3-
workflow_dispatch: # Manually start a workflow
3+
push:
4+
tags:
5+
- "*"
46

57
jobs:
68
build-libs:
79
name: Build Arduino Libs
8-
runs-on: macos-14
10+
runs-on: ubuntu-latest
911
steps:
1012
- uses: actions/checkout@v4
1113
- name: Set up Python
@@ -19,14 +21,25 @@ jobs:
1921
echo "GIT_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
2022
- name: Build Arduino Libs
2123
run: bash ./build.sh
22-
- name: Release
23-
uses: jason2866/[email protected]
24-
with:
25-
tag_name: ${{ github.run_number }}
26-
body_path: release-info.txt
27-
prerelease: true
28-
files: |
29-
dist/framework*
30-
release-info.txt
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
# - name: Release
25+
# uses: jason2866/[email protected]
26+
# with:
27+
# tag_name: ${{ github.run_number }}
28+
# body_path: release-info.txt
29+
# prerelease: true
30+
# files: |
31+
# dist/framework*
32+
# release-info.txt
33+
# env:
34+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
- name: Create Release and Upload Release Asset
36+
uses: softprops/action-gh-release@v1
37+
if: startsWith(github.ref, 'refs/tags/')
38+
with:
39+
tag_name: ${{ env.REF_NAME }}
40+
name: ${{ env.REF_NAME }}
41+
token: ${{ secrets.ACCESS_TOKEN }}
42+
draft: false
43+
prerelease: false
44+
files: |
45+
dist/*

0 commit comments

Comments
 (0)