Skip to content

Commit 6b00d2f

Browse files
authored
Merge pull request #162 from netmindz/actions-update
Update github actions
2 parents 8c0fcaa + 2276080 commit 6b00d2f

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

.github/workflows/wled-ci.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ jobs:
88
name: Gather Environments
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
- name: Cache pip
13-
uses: actions/cache@v3
13+
uses: actions/cache@v4
1414
with:
1515
path: ~/.cache/pip
1616
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
1717
restore-keys: |
1818
${{ runner.os }}-pip-
19-
- uses: actions/setup-python@v4
19+
- uses: actions/setup-python@v5
2020
with:
2121
python-version: '3.9'
2222
- name: Install PlatformIO
@@ -38,21 +38,24 @@ jobs:
3838
matrix:
3939
environment: ${{ fromJSON(needs.get_default_envs.outputs.environments) }}
4040
steps:
41-
- uses: actions/checkout@v3
41+
- uses: actions/checkout@v4
4242
- name: Cache pip
43-
uses: actions/cache@v3
43+
uses: actions/cache@v4
4444
with:
4545
path: ~/.cache/pip
4646
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
4747
restore-keys: |
4848
${{ runner.os }}-pip-
4949
- name: Cache PlatformIO
50-
uses: actions/cache@v3
50+
uses: actions/cache@v4
5151
with:
5252
path: ~/.platformio
5353
key: ${{ runner.os }}-${{ matrix.environment}}-${{ hashFiles('platformio.ini') }}
54+
restore-keys: |
55+
${{ runner.os }}-${{ matrix.environment}}
56+
5457
- name: Set up Python
55-
uses: actions/setup-python@v4
58+
uses: actions/setup-python@v5
5659
with:
5760
python-version: '3.9'
5861
- name: Install PlatformIO
@@ -61,26 +64,28 @@ jobs:
6164
env:
6265
WLED_RELEASE: True
6366
run: pio run -e ${{ matrix.environment }}
64-
- uses: actions/upload-artifact@v2
67+
- name: Rename Bin
68+
run: mv -v .pio/build/${{ matrix.environment }}/firmware.bin firmware-${{ matrix.environment }}.bin
69+
- uses: actions/upload-artifact@v4
6570
with:
6671
name: firmware-${{ matrix.environment }}
67-
path: |
68-
build_output/firmware/*.bin
69-
build_output/firmware/*.gz
70-
- uses: actions/upload-artifact@v2
72+
path: firmware-${{ matrix.environment }}.bin
73+
- uses: actions/upload-artifact@v4
7174
if: startsWith(github.ref, 'refs/tags/')
7275
with:
73-
name: firmware-release
76+
name: firmware-release-${{ matrix.environment }}
7477
path: build_output/release/*.bin
7578
release:
7679
name: Create Release
7780
runs-on: ubuntu-latest
7881
needs: [get_default_envs, build]
7982
if: startsWith(github.ref, 'refs/tags/')
8083
steps:
81-
- uses: actions/download-artifact@v2
84+
- uses: actions/download-artifact@v4
8285
with:
83-
name: firmware-release
86+
name: firmware-release-*
87+
- name: List Artifacts
88+
run: find ./
8489
- name: Create draft release
8590
uses: softprops/action-gh-release@v1
8691
with:

0 commit comments

Comments
 (0)