Skip to content

Commit afe8b73

Browse files
authored
Update Github Actions as deprecated GH breaks build (#42)
1 parent 63b0245 commit afe8b73

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
# Check for updates to GitHub Actions every month
8+
interval: "monthly"

.github/workflows/push-master.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
PlatformIO:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4.2.2
1515
- name: Cache pip
1616
uses: actions/cache@v3
1717
with:
@@ -20,7 +20,7 @@ jobs:
2020
restore-keys: |
2121
${{ runner.os }}-pip-
2222
- name: Cache PlatformIO
23-
uses: actions/cache@v3
23+
uses: actions/cache@v4.2.3
2424
with:
2525
path: ~/.platformio
2626
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
@@ -34,18 +34,17 @@ jobs:
3434
pip install --upgrade platformio
3535
- name: Run PlatformIO
3636
run: pio run
37-
- uses: actions/upload-artifact@v3
37+
- uses: actions/upload-artifact@v4.6.2
3838
name: Upload artifacts (commit)
3939
if: (startsWith(github.event.ref, 'refs/tags') != true)
4040
with:
4141
path: |
4242
.pio/build/*.bin
43-
44-
- uses: actions/upload-artifact@v3
43+
- uses: actions/upload-artifact@v4.6.2
4544
name: Upload artifacts (release)
4645
if: startsWith(github.ref, 'refs/tags/')
4746
with:
48-
name: firmware-release
47+
name: release-artifact
4948
path: |
5049
.pio/build/*.bin
5150
@@ -70,18 +69,19 @@ jobs:
7069
if: contains(env.VERSION, 'alpha') || contains(env.VERSION, 'beta')
7170
run: echo "preRelease=true" >> $GITHUB_ENV
7271

73-
- uses: actions/download-artifact@v3
72+
- uses: actions/download-artifact@v4.3.0
7473
with:
75-
name: firmware-release
74+
path: artifacts
75+
pattern: release-artifact
76+
merge-multiple: true
7677

7778
# create draft release and upload artifacts
7879
- name: Create draft release
79-
uses: softprops/action-gh-release@v1
80+
uses: softprops/action-gh-release@v2.2.2
8081
with:
8182
name: HyperSerialEsp8266 ${{ env.VERSION }}
8283
tag_name: ${{ env.TAG }}
83-
files: |
84-
*.bin
84+
files: "artifacts/*.bin"
8585
draft: true
8686
prerelease: ${{ env.preRelease }}
8787
env:

0 commit comments

Comments
 (0)