summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/android.yml15
-rw-r--r--.github/workflows/linux-trusty-5.12.yml18
-rw-r--r--.github/workflows/mac.yml12
-rw-r--r--.github/workflows/windows.yml18
4 files changed, 42 insertions, 21 deletions
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
index c4580bc08..63543ca32 100644
--- a/.github/workflows/android.yml
+++ b/.github/workflows/android.yml
@@ -39,10 +39,15 @@ jobs:
BIN1: ./Subsurface-mobile.apk
BIN2: ./Subsurface-mobile.arm64.apk
- - name: copy to transfer.sh
+ - name: prepare PR artifacts
if: github.event_name == 'pull_request'
run: |
- apt-get update
- apt-get install -y curl
- curl --upload-file Subsurface-mobile.apk "https://transfer.sh/Subsurface-mobile.apk"
- curl --upload-file Subsurface-mobile.arm64.apk "https://transfer.sh/Subsurface-mobile.arm64.apk"
+ mkdir -p Android-artifacts
+ mv Subsurface-mobile.apk Subsurface-mobile.arm64.apk Android-artifacts
+
+ - name: PR artifacts
+ if: github.event_name == 'pull_request'
+ uses: actions/upload-artifact@master
+ with:
+ name: Android-artifacts
+ path: Android-artifacts
diff --git a/.github/workflows/linux-trusty-5.12.yml b/.github/workflows/linux-trusty-5.12.yml
index b0270d70c..9783cc301 100644
--- a/.github/workflows/linux-trusty-5.12.yml
+++ b/.github/workflows/linux-trusty-5.12.yml
@@ -23,7 +23,7 @@ jobs:
bash -x subsurface/.github/workflows/scripts/linux-in-container-build.sh
- name: create CI release
- if: github.event_name == 'pull_request'
+ if: github.event_name == 'push'
uses: ./.github/actions/release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -32,9 +32,15 @@ jobs:
COMMIT: ${{ github.sha }}
BIN1: ./Subsurface.AppImage
- - name: copy to transfer.sh
- if: github.event_name == 'push'
+ - name: prepare PR artifacts
+ if: github.event_name == 'pull_request'
run: |
- apt-get update
- apt-get install -y curl
- curl --upload-file Subsurface.AppImage "https://transfer.sh/Subsurface.AppImage"
+ mkdir -p Linux-artifacts
+ mv Subsurface.AppImage Linux-artifacts
+
+ - name: PR artifacts
+ if: github.event_name == 'pull_request'
+ uses: actions/upload-artifact@master
+ with:
+ name: Linux-artifacts
+ path: Linux-artifacts
diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml
index 8db307064..515c7e37f 100644
--- a/.github/workflows/mac.yml
+++ b/.github/workflows/mac.yml
@@ -111,7 +111,15 @@ jobs:
COMMIT: ${{ github.sha }}
BIN1: Subsurface.app.zip
- - name: copy to transfer.sh
+ - name: prepare PR artifacts
if: github.event_name == 'pull_request'
run: |
- curl --upload-file Subsurface.app.zip "https://transfer.sh/Subsurface.app.zip"
+ mkdir -p Mac-artifacts
+ mv Subsurface.app.zip Mac-artifacts
+
+ - name: PR artifacts
+ if: github.event_name == 'pull_request'
+ uses: actions/upload-artifact@master
+ with:
+ name: Mac-artifacts
+ path: Mac-artifacts
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 8e0557a43..b8a3030de 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -53,13 +53,15 @@ jobs:
BIN4: ./smtk2ssrf-installer.exe
BIN5: ./smtk2ssrf.exe
- - name: copy to transfer.sh
+ - name: prepare PR artifacts
if: github.event_name == 'pull_request'
run: |
- apt-get update
- apt-get install -y curl
- curl --upload-file subsurface-installer.exe "https://transfer.sh/subsurface-installer.exe"
- curl --upload-file subsurface.exe "https://transfer.sh/subsurface.exe"
- curl --upload-file subsurface.exe.debug "https://transfer.sh/subsurface.exe.debug"
- curl --upload-file smtk2ssrf-installer.exe "https://transfer.sh/smtk2ssrf-installer.exe"
- curl --upload-file smtk2ssrf.exe "https://transfer.sh/smtk2ssrf.exe"
+ mkdir -p Windows-artifacts
+ mv ./subsurface-installer.exe ./subsurface.exe ./subsurface.exe.debug ./smtk2ssrf-installer.exe ./smtk2ssrf.exe Windows-artifacts
+
+ - name: PR artifacts
+ if: github.event_name == 'pull_request'
+ uses: actions/upload-artifact@master
+ with:
+ name: Windows-artifacts
+ path: Windows-artifacts