Github Actions refactor artifact Up-/Download (#18640)

* multi artifact Up-/Download
This commit is contained in:
Jason2866 2023-05-10 23:57:54 +02:00 committed by GitHub
parent 3a6cd9b63c
commit 11bf16d162
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 55 deletions

View File

@ -38,18 +38,10 @@ jobs:
run: |
cd lib/libesp32_lvgl/lv_binding_berry
../../libesp32/berry/berry -s -g solidify_all.be
- uses: actions/upload-artifact@v3
- uses: jason2866/upload-artifact@v2.0.2
with:
name: berry_matter
path: ./lib/libesp32/berry_matter/src/solidify
- uses: actions/upload-artifact@v3
with:
name: berry_tasmota
path: ./lib/libesp32/berry_tasmota/src/solidify
- uses: actions/upload-artifact@v3
with:
name: lvgl_tasmota
path: ./lib/libesp32_lvgl/lv_binding_berry/src/solidify
name: '["berry_matter", "berry_tasmota", "lvgl_tasmota"]'
path: '["./lib/libesp32/berry_matter/src/solidify", "./lib/libesp32/berry_tasmota/src/solidify", "./lib/libesp32_lvgl/lv_binding_berry/src/solidify"]'
push_solidified:
needs: be_solidify
@ -61,23 +53,16 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Remove old solidified code
run: |
rm ./lib/libesp32/berry_matter/src/solidify/*
rm ./lib/libesp32/berry_tasmota/src/solidify/*
rm ./lib/libesp32_lvgl/lv_binding_berry/src/solidify/*
- uses: actions/download-artifact@v3
- uses: jason2866/download-artifact@v3
with:
name: berry_matter
path: ./lib/libesp32/berry_matter/src/solidify
- uses: actions/download-artifact@v3
with:
name: berry_tasmota
path: ./lib/libesp32/berry_tasmota/src/solidify
- uses: actions/download-artifact@v3
with:
name: lvgl_tasmota
path: ./lib/libesp32_lvgl/lv_binding_berry/src/solidify
name: |
berry_matter
berry_tasmota
lvgl_tasmota
path: |
./lib/libesp32/berry_matter/src/solidify
./lib/libesp32/berry_tasmota/src/solidify
./lib/libesp32_lvgl/lv_binding_berry/src/solidify
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Solidified Code updated

View File

@ -15,7 +15,7 @@ concurrency:
jobs:
be_solidify:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
if: github.repository == 'arendst/Tasmota'
steps:
- uses: actions/checkout@v3
@ -37,18 +37,10 @@ jobs:
run: |
cd lib/libesp32_lvgl/lv_binding_berry
../../libesp32/berry/berry -s -g solidify_all.be
- uses: actions/upload-artifact@v3
- uses: jason2866/upload-artifact@v2.0.2
with:
name: berry_matter
path: ./lib/libesp32/berry_matter/src/solidify
- uses: actions/upload-artifact@v3
with:
name: berry_tasmota
path: ./lib/libesp32/berry_tasmota/src/solidify
- uses: actions/upload-artifact@v3
with:
name: lvgl_tasmota
path: ./lib/libesp32_lvgl/lv_binding_berry/src/solidify
name: '["berry_matter", "berry_tasmota", "lvgl_tasmota"]'
path: '["./lib/libesp32/berry_matter/src/solidify", "./lib/libesp32/berry_tasmota/src/solidify", "./lib/libesp32_lvgl/lv_binding_berry/src/solidify"]'
push_solidified:
needs: be_solidify
@ -60,23 +52,16 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Remove old solidified code
run: |
rm ./lib/libesp32/berry_matter/src/solidify/*
rm ./lib/libesp32/berry_tasmota/src/solidify/*
rm ./lib/libesp32_lvgl/lv_binding_berry/src/solidify/*
- uses: actions/download-artifact@v3
- uses: jason2866/download-artifact@v3
with:
name: berry_matter
path: ./lib/libesp32/berry_matter/src/solidify
- uses: actions/download-artifact@v3
with:
name: berry_tasmota
path: ./lib/libesp32/berry_tasmota/src/solidify
- uses: actions/download-artifact@v3
with:
name: lvgl_tasmota
path: ./lib/libesp32_lvgl/lv_binding_berry/src/solidify
name: |
berry_matter
berry_tasmota
lvgl_tasmota
path: |
./lib/libesp32/berry_matter/src/solidify
./lib/libesp32/berry_tasmota/src/solidify
./lib/libesp32_lvgl/lv_binding_berry/src/solidify
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Solidified Code updated