From ed7e49754acc1e788d2a64c7a0d95d2fcfceddca Mon Sep 17 00:00:00 2001
From: Christopher Brownlie <13515086+cabrownlie@users.noreply.github.com>
Date: Thu, 25 Apr 2024 14:42:33 +0000
Subject: [PATCH] Fix artifact upload in GitHub Actions workflow

---
 .github/workflows/deploy.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index cafcce8..f81a49c 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -21,10 +21,6 @@ jobs:
           sudo apt-get update \
           && sudo apt-get install -y g++ pkg-config libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
       - uses: actions/checkout@v4
-      - uses: actions/upload-artifact@v4
-        with:
-          name: "bevy-example-release"
-          path: "./target/release/bevy-example"
       - uses: actions/cache@v4
         with:
           path: |
@@ -36,4 +32,8 @@ jobs:
           key: ${{ runner.os }}-cargo-build-stable-${{ hashFiles('**/Cargo.toml') }}
       - name: Build Release
         run: cargo build --release
+      - uses: actions/upload-artifact@v4
+        with:
+          name: "bevy-example-release"
+          path: "./target/release/bevy-example"
       
\ No newline at end of file