Skip to content

Commit

Permalink
Add: PR: upload binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
drew2a committed Nov 13, 2023
1 parent 5074a49 commit c123bee
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/!PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
outputs:
python-version: '3.8'
source-ref: refs/pull/${{github.event.pull_request.number}}/merge
labels: ${{ toJson(github.event.pull_request.labels.*.name) }}

steps:
- run: echo done

Expand Down Expand Up @@ -144,6 +146,7 @@ jobs:
upload: false
os: ubuntu-latest
python-version: ${{needs.env.outputs.python-version}}
labels: ${{needs.env.outputs.labels}}
ref: ${{needs.env.outputs.source-ref}}

mac:
Expand All @@ -154,6 +157,7 @@ jobs:
upload: false
os: macos-latest
python-version: ${{needs.env.outputs.python-version}}
labels: ${{needs.env.outputs.labels}}
ref: ${{needs.env.outputs.source-ref}}

windows:
Expand All @@ -164,6 +168,7 @@ jobs:
upload: false
os: windows-latest
python-version: ${{needs.env.outputs.python-version}}
labels: ${{needs.env.outputs.labels}}
ref: ${{needs.env.outputs.source-ref}}

# check documentation build
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/build_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ on:
type: string
required: false

labels:
type: string
required: true

workflow_dispatch:
inputs:
os:
Expand Down Expand Up @@ -78,7 +82,8 @@ jobs:
./build/mac/makedist_macos.sh
- name: Upload Artifact
if: github.event.inputs.upload || inputs.upload
if: >-
github.event.inputs.upload || inputs.upload || contains(fromJson(inputs.labels), 'PR: upload binaries')
uses: actions/upload-artifact@v3
with:
name: tribler.dmg
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/build_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ on:
type: string
required: false

labels:
type: string
required: true

secrets:
SENTRY_URL:
required: false
Expand Down Expand Up @@ -89,7 +93,8 @@ jobs:
./build/debian/makedist_debian.sh
- name: Upload Artifact
if: github.event.inputs.upload || inputs.upload
if: >-
github.event.inputs.upload || inputs.upload || contains(fromJson(inputs.labels), 'PR: upload binaries')
uses: actions/upload-artifact@v3
with:
name: tribler.deb
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ on:
type: string
required: false

labels:
type: string
required: true

workflow_dispatch:
inputs:
os:
Expand Down Expand Up @@ -129,7 +133,8 @@ jobs:
./build/win/makedist_win.bat
- name: Upload Artifact
if: github.event.inputs.upload || inputs.upload
if: >-
github.event.inputs.upload || inputs.upload || contains(fromJson(inputs.labels), 'PR: upload binaries')
uses: actions/upload-artifact@v3
with:
name: tribler
Expand Down

0 comments on commit c123bee

Please sign in to comment.