Nightly workflow using platform workflows

This commit is contained in:
sagudev 2023-04-06 18:43:33 +02:00
parent ec5b646b50
commit 76e9c68ac7
4 changed files with 70 additions and 110 deletions

View file

@ -10,6 +10,10 @@ on:
required: false
default: false
type: boolean
upload:
required: false
default: false
type: boolean
workflow_dispatch:
inputs:
layout:
@ -20,6 +24,10 @@ on:
required: false
default: false
type: boolean
upload:
required: false
default: false
type: boolean
push:
branches: ["try-mac"]
@ -81,6 +89,12 @@ jobs:
with:
name: ${{ env.PACKAGE }}
path: target/release/servo-tech-demo.dmg
- name: Upload
if: ${{ inputs.upload }}
run: python3 ./mach upload-nightly mac --secret-from-environment
env:
S3_UPLOAD_CREDENTIALS: ${{ secrets.S3_UPLOAD_CREDENTIALS }}
GITHUB_HOMEBREW_TOKEN: ${{ secrets.HOMEBREW_TOKEN }}
- name: Package binary
run: gtar -czf target.tar.gz target/release/servo target/release/*.dylib resources
- name: Archive binary