From 7d0d186f3d67844f2f5109837ed9e6ab81427ddc Mon Sep 17 00:00:00 2001 From: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Date: Fri, 3 Jan 2025 04:56:26 +0100 Subject: [PATCH 1/3] Upload artifact after building Could be used like a pre-release or for ease to not need to rebuild locally after a fix has been pushed to main --- .github/workflows/ci-build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 8696088..71587a8 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -38,3 +38,9 @@ jobs: - name: Build run: cargo build --release + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.os }}-latest-build + path: target/release/arnis.exe From 9afa4c39a63bf3ac32804507864472984e34e994 Mon Sep 17 00:00:00 2001 From: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Date: Fri, 3 Jan 2025 18:12:26 +0100 Subject: [PATCH 2/3] Update ci-build.yml --- .github/workflows/ci-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 71587a8..0ddaa15 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -40,6 +40,7 @@ jobs: run: cargo build --release - name: Upload artifact + if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: actions/upload-artifact@v3 with: name: ${{ matrix.os }}-latest-build From dcc4138657d31a27b9064c1d89873eb981294e13 Mon Sep 17 00:00:00 2001 From: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Date: Fri, 3 Jan 2025 18:20:53 +0100 Subject: [PATCH 3/3] Update .github/workflows/ci-build.yml --- .github/workflows/ci-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 0ddaa15..550a1f1 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -41,7 +41,7 @@ jobs: - name: Upload artifact if: github.event_name == 'push' && github.ref == 'refs/heads/main' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.os }}-latest-build path: target/release/arnis.exe