summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorArchez <Archez@users.noreply.github.com>2024-05-13 14:45:14 -0400
committerGarrett Cox <garrettjcox@gmail.com>2024-05-22 09:05:05 -0500
commitff973968e2d6cb12651f8daf5ca4e474bb20fcd5 (patch)
tree7367a52c2c41df8b590163c6618bed92508bbe73 /.github
parent3f089d77cd6551723c9eeb9951f46624f33dad47 (diff)
Restrict artifact uploads to develop branch only (#381)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml15
1 files changed, 8 insertions, 7 deletions
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