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

View File

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