Skip to content

Commit d745c7c

Browse files
authored
reworked release
1 parent f0952d2 commit d745c7c

File tree

1 file changed

+13
-28
lines changed

1 file changed

+13
-28
lines changed

.github/workflows/push.yml

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ on:
44
push:
55
branches:
66
- master
7-
pull_request:
87

98
jobs:
10-
119
build-libs:
1210
name: Build Arduino Libs
1311
runs-on: ubuntu-latest
@@ -17,37 +15,24 @@ jobs:
1715
run: bash ./tools/prepare-ci.sh
1816
- name: Build Arduino Libs
1917
run: bash ./build.sh
20-
- name: Upload archive
18+
- name: Upload artifact
2119
uses: actions/upload-artifact@v1
2220
with:
2321
name: esp32-arduino
2422
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
3325
with:
3426
name: esp32-arduino
3527
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/')
5033
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

Comments
 (0)