Skip to content

Commit

Permalink
Update download/upload actions to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr committed Jan 2, 2024
1 parent 4773160 commit 7a6ed77
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
run: |
docker export $(docker create qmkfm/qmk_distro_wsl:latest) | gzip > .build/install.tar.gz
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: artifacts
name: artifacts-rootfs
path: .build/*


Expand All @@ -58,9 +58,9 @@ jobs:
run: |
sudo wget -P .build/ https://raw.githubusercontent.com/qmk/qmk_firmware/master/util/drivers.txt
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: artifacts
name: artifacts-drivers
path: .build/*

launcher:
Expand All @@ -78,9 +78,9 @@ jobs:
run: |
sudo mv .build/wsldl.exe .build/QMK.exe
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: artifacts
name: artifacts-launcher
path: .build/*

build:
Expand All @@ -94,33 +94,34 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifacts
path: .build
pattern: artifacts-*
merge-multiple: true

- name: Create Installer
shell: 'bash {0}'
run: |
iscc installer/install.iss //DMyAppVersion=${VERSION:-0.0.0}
sha256sum .build/QMK_WSL.exe > .build/QMK_WSL.exe.sha256
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: installer
path: .build/QMK_WSL.*

- uses: geekyeggo/delete-artifact@v4
with:
name: artifacts
name: artifacts-*

test:
runs-on: windows-latest

needs: [build]

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: installer

Expand All @@ -141,7 +142,7 @@ jobs:
if: github.event.release.tag_name

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: installer
path: .build
Expand All @@ -162,7 +163,7 @@ jobs:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: installer
path: .build
Expand Down

0 comments on commit 7a6ed77

Please sign in to comment.