From fa7e69487ded9ad43014e563331f3261cad6df26 Mon Sep 17 00:00:00 2001 From: Oleg Rakhmatulin Date: Sat, 30 Dec 2023 05:19:22 +0100 Subject: [PATCH] Don't spend time on artifact creation if they will not be used. --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 89761fef..16ef576f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,6 +38,7 @@ jobs: - name: Save SDK Packages uses: actions/upload-artifact@v4 + if: github.repository == 'alpacahq/alpaca-trade-api-csharp' && startsWith(github.ref, 'refs/tags/sdk') with: retention-days: 1 compression-level: 0 @@ -48,6 +49,7 @@ jobs: - name: Save Extensions Packages uses: actions/upload-artifact@v4 + if: github.repository == 'alpacahq/alpaca-trade-api-csharp' && startsWith(github.ref, 'refs/tags/ext') with: retention-days: 1 compression-level: 0