From ff973968e2d6cb12651f8daf5ca4e474bb20fcd5 Mon Sep 17 00:00:00 2001 From: Archez Date: Mon, 13 May 2024 14:45:14 -0400 Subject: Restrict artifact uploads to develop branch only (#381) --- .github/workflows/main.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8c7f59f2f..49ddaff62 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,13 +43,13 @@ jobs: env: CC: gcc CXX: g++ - - name: Upload build - uses: actions/upload-artifact@v4 - with: - name: 2ship-linux - path: | - 2ship.appimage - readme.txt + # - name: Upload build + # uses: actions/upload-artifact@v4 + # with: + # name: 2ship-linux + # path: | + # 2ship.appimage + # readme.txt # build-windows: # needs: generate-soh-otr-and-headers # runs-on: windows-latest @@ -152,6 +152,7 @@ jobs: - name: Unzip package run: Expand-Archive -Path 2ship-windows.zip -DestinationPath 2ship-windows - name: Upload build + if: ${{ startsWith(github.ref, 'refs/heads/develop') }} uses: actions/upload-artifact@v4 with: name: 2ship-windows -- cgit v1.2.3