Modified GHA to not upload to S3 when PR is built

This commit is contained in:
Kevin López Brante 2020-10-10 20:45:39 -03:00
parent bf3bb45db9
commit ca98584fd0
2 changed files with 4 additions and 6 deletions

View File

@ -1,6 +1,6 @@
name: CMake Linux name: CMake Linux
on: [push] on: [push, pull_request]
env: env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
@ -59,6 +59,7 @@ jobs:
name: vgmstream-audacious name: vgmstream-audacious
- name: Upload Artifacts to S3 - name: Upload Artifacts to S3
if: github.event_name != 'pull_request'
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
shell: bash shell: bash
env: env:

View File

@ -4,11 +4,7 @@ name: Windows VS 2017
# Controls when the action will run. Triggers the workflow on push or pull request # Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch # events but only for the master branch
on: on: [push, pull_request]
push:
branches: [ master ]
pull_request:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
@ -105,6 +101,7 @@ jobs:
path: ${{github.workspace}}\tmp\cli-p path: ${{github.workspace}}\tmp\cli-p
- name: Upload Artifacts to S3 - name: Upload Artifacts to S3
if: github.event_name != 'pull_request'
working-directory: ${{github.workspace}} working-directory: ${{github.workspace}}
shell: powershell shell: powershell
env: env: