-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (46 loc) · 1.25 KB
/
rpm.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
name: Artifacts
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
rpms:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
- uses: actions/checkout@v2
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -y make
- name: build RPM package
run: make rpms
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: Binary RPMs
path: dist/rpm/RPMS/x86_64/
packages:
runs-on: ubuntu-latest
needs: rpms
# we only build all the packages when
# it is manually triggered by someone
if: github.event_name == 'workflow_dispatch'
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
- uses: actions/checkout@v2
- name: Download Deps
uses: dawidd6/action-download-artifact@v6
with:
workflow: rpm.yml
workflow_conclusion: success
name: Binary RPM
- uses: actions/download-artifact@v2
with:
name: Binary RPM
- run: mkdir -p dist/rpm/RPMS/x86_64/
- run: cp *.rpm dist/rpm/RPMS/x86_64/
- run: make packages.docker