-
Notifications
You must be signed in to change notification settings - Fork 50
49 lines (48 loc) · 1.38 KB
/
main.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
name: Continuous Integration
on:
push:
pull_request:
jobs:
build-all:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Install Dependencies
shell: bash
run: |
sudo apt update
DEBIAN_FRONTEND=noninteractive sudo apt-get install -yq --no-install-recommends build-essential debhelper dh-python dpkg-dev python3 python3-distutils-extra po-debconf pyflakes3 lsb-release gnu-efi
- name: Build Debian Packages
shell: bash
run: dpkg-buildpackage --no-sign
- name: Move Artifacts
shell: bash
run: |
mkdir ./dist
cp ../dell-recovery*.deb ./dist/
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: dell-recovery
path: ./dist
draft-release:
if: startsWith(github.ref, 'refs/tags/')
needs: build-all
name: Draft Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
name: dell-recovery
- name: Draft Release
uses: softprops/action-gh-release@v1
with:
files: dell-recovery*.deb
draft: true
generate_release_notes: true
body_path: ./debian/changelog