Skip to content

Commit

Permalink
Update Github Action to Node.js 20 (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
awawa-dev committed Oct 19, 2024
1 parent da3de40 commit 2f44d12
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every month
interval: "monthly"
30 changes: 16 additions & 14 deletions .github/workflows/push-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.2.0
with:
submodules: recursive

Expand All @@ -32,18 +32,18 @@ jobs:
for f in *.uf2 ; do mv -- "$f" "classic_adalight_$f" ; done
touch not_for_HyperHDR_firmware.txt
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4.4.0
name: Upload artifacts (commit)
if: (startsWith(github.event.ref, 'refs/tags') != true)
with:
path: |
firmware/*.uf2
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4.4.0
name: Upload artifacts (release)
if: startsWith(github.ref, 'refs/tags/')
with:
name: firmware-release
name: firmware-release-generic
path: |
firmware/*.uf2
Expand All @@ -60,11 +60,11 @@ jobs:
cmake --build .
zip -j ../firmware/Adafruit_Feather_RP2040_Scorpio.zip ../firmware/*
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4.4.0
name: Upload artifacts (release Adafruit_Feather)
if: startsWith(github.ref, 'refs/tags/')
with:
name: firmware-release
name: firmware-release-adafruit-scorpio
path: |
firmware/*.zip
Expand All @@ -81,11 +81,11 @@ jobs:
rm ../firmware/*_Spi.uf2
zip -j ../firmware/Adafruit_ItsyBitsy_2040.zip ../firmware/*
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4.4.0
name: Upload artifacts (release Adafruit_ItsyBitsy)
if: startsWith(github.ref, 'refs/tags/')
with:
name: firmware-release
name: firmware-release-adafruit-itsybitsy
path: |
firmware/*.zip
Expand All @@ -102,11 +102,11 @@ jobs:
rm ../firmware/*_Spi.uf2
zip -j ../firmware/Pimoroni_Plasma_Stick_2040_W.zip ../firmware/*
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4.4.0
name: Upload artifacts (release Pimoroni_Plasma_Stick_W)
if: startsWith(github.ref, 'refs/tags/')
with:
name: firmware-release
name: firmware-release-pimoroni-plasma-stick
path: |
firmware/*.zip
Expand All @@ -123,11 +123,11 @@ jobs:
cmake --build .
zip -j ../firmware/Pimoroni_Plasma_2040.zip ../firmware/*
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4.4.0
name: Upload artifacts (release Pimoroni_Plasma)
if: startsWith(github.ref, 'refs/tags/')
with:
name: firmware-release
name: firmware-release-pimoroni-plasma
path: |
firmware/*.zip
Expand All @@ -154,13 +154,15 @@ jobs:
if: contains(env.VERSION, 'alpha') || contains(env.VERSION, 'beta')
run: echo "preRelease=true" >> $GITHUB_ENV

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4.1.8
with:
name: firmware-release
pattern: firmware-release-*
merge-multiple: true

# create draft release and upload artifacts
- name: Create draft release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2.0.8
with:
name: HyperSerialPico ${{ env.VERSION }}
tag_name: ${{ env.TAG }}
Expand Down

0 comments on commit 2f44d12

Please sign in to comment.