-
-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (41 loc) · 1.06 KB
/
preview-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Preview build
run-name: "Preview build - ${{ inputs.ref }}"
on:
workflow_dispatch:
inputs:
ref:
description: A git ref on the Streamlink git repo
default: master
required: true
type: string
jobs:
build:
name: "${{ inputs.ref }} (${{ matrix.build }})"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- build: installer
- build: portable
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
./install-build-dependencies.sh
- name: Build
run: |
"./build-${{ matrix.build }}.sh" "" "" "${{ inputs.ref }}"
- name: Get file name
id: vars
run: |
echo "file_name=$(cd dist && ls *.*)" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.vars.outputs.file_name }}
path: dist/*