mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
Fix build_and_deploy workflow (#553)
This commit is contained in:
parent
f79713980a
commit
fc961737f4
15
.github/workflows/build_and_deploy.yaml
vendored
15
.github/workflows/build_and_deploy.yaml
vendored
@ -7,7 +7,7 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
mode:
|
||||
description: What type of build to trigger. Release builds should be ran from the `master` branch.
|
||||
description: What type of build to trigger. Release builds MUST be ran from the `master` branch.
|
||||
required: true
|
||||
default: nightly
|
||||
type: choice
|
||||
@ -15,27 +15,27 @@ on:
|
||||
- nightly
|
||||
- release
|
||||
macos:
|
||||
description: Whether to build macOS
|
||||
description: Build macOS
|
||||
required: true
|
||||
type: boolean
|
||||
default: true
|
||||
windows_32bit:
|
||||
description: Whether to build Windows 32-bit
|
||||
description: Build Windows 32-bit
|
||||
required: true
|
||||
type: boolean
|
||||
default: true
|
||||
windows_64bit:
|
||||
description: Whether to build Windows 64-bit
|
||||
description: Build Windows 64-bit
|
||||
required: true
|
||||
type: boolean
|
||||
default: true
|
||||
linux:
|
||||
description: Whether to build Linux
|
||||
description: Build Linux
|
||||
required: true
|
||||
type: boolean
|
||||
default: true
|
||||
deploy:
|
||||
description: Whether to deploy artifacts
|
||||
description: Deploy artifacts
|
||||
required: true
|
||||
type: boolean
|
||||
default: true
|
||||
@ -107,6 +107,7 @@ jobs:
|
||||
deploy:
|
||||
needs:
|
||||
- macos
|
||||
- linux
|
||||
- windows_32bit
|
||||
- windows_64bit
|
||||
runs-on: ubuntu-latest
|
||||
@ -131,7 +132,7 @@ jobs:
|
||||
R2_URL: ${{ secrets.CF_R2_S3_API }}
|
||||
|
||||
- name: Deploy artifacts
|
||||
if: github.event_name != 'workflow_dispatch' || inputs.macos
|
||||
if: github.event_name != 'workflow_dispatch' || inputs.macos || inputs.windows_32bit || inputs.windows_64bit
|
||||
run: |
|
||||
aws s3 cp --recursive packages.element.io/ s3://$R2_BUCKET/$DEPLOYMENT_DIR --endpoint-url $R2_URL --region auto
|
||||
env:
|
||||
|
Loading…
Reference in New Issue
Block a user