-
Notifications
You must be signed in to change notification settings - Fork 20
55 lines (46 loc) · 1.19 KB
/
linux-pkg.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
44
45
46
47
48
49
50
51
52
53
54
55
name: linux packages
on:
workflow_call:
inputs:
external_call:
description: 'To distinguish workflow_call from regular push / workflow_dispatch'
type: boolean
required: false
default: false
workflow_dispatch:
push:
branches:
- feature/*
jobs:
build-linux:
uses: ./.github/workflows/linux.yml
if: ${{ inputs.external_call == false }}
build-pkg:
runs-on: [self-hosted, nzbget-linux]
needs: [build-linux]
if: always()
permissions:
actions: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download build artifacts
uses: actions/download-artifact@v4
- name: Build DEB and RPM packages
run: |
apt update && apt install rpm
bash linux/pkg/build-pkg.sh
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: nzbget-deb-packages
path: build/deb/*.deb
retention-days: 5
- name: Delete unneded linux artifacts
if: ${{ inputs.external_call == false }}
uses: geekyeggo/delete-artifact@v4
with:
name: |
nzbget-linux-installers